]> Git Repo - J-u-boot.git/blobdiff - test/py/conftest.py
test: Support tests which can only be run manually
[J-u-boot.git] / test / py / conftest.py
index 304e93164aae0218eae29363567c78646baa2286..fc9dd3a83f8b93194b75c166da78d7fa6b9b8bd5 100644 (file)
@@ -289,7 +289,13 @@ def generate_ut_subtest(metafunc, fixture_name, sym_path):
         m = re_ut_test_list.search(l)
         if not m:
             continue
-        vals.append(m.group(1) + ' ' + m.group(2))
+        suite, name = m.groups()
+
+        # Tests marked with _norun should only be run manually using 'ut -f'
+        if name.endswith('_norun'):
+            continue
+
+        vals.append(f'{suite} {name}')
 
     ids = ['ut_' + s.replace(' ', '_') for s in vals]
     metafunc.parametrize(fixture_name, vals, ids=ids)
This page took 0.02514 seconds and 4 git commands to generate.