tests/tracing/conftest.py: add valid `basic-extra-pc-ft-members` cat.
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 25 Sep 2020 02:02:45 +0000 (22:02 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 25 Sep 2020 02:02:45 +0000 (22:02 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/tracing/conftest.py

index cb2e8e3424ccb495599b700ca640007ac375846a..3555844094037db6ba646023b04788c514f7e9df 100644 (file)
@@ -56,8 +56,13 @@ def pytest_collect_file(parent, path):
     cat_dir = os.path.dirname(subcat_dir)
     cat = os.path.basename(cat_dir)
     configs_dir = os.path.dirname(cat_dir)
+    valid_cats = {
+        'basic',
+        'counter-clock',
+        'basic-extra-pc-ft-members',
+    }
 
-    if cat not in {'basic', 'counter-clock'} or os.path.basename(configs_dir) != 'configs':
+    if cat not in valid_cats or os.path.basename(configs_dir) != 'configs':
         # not a YAML configuration test
         return
 
This page took 0.023918 seconds and 4 git commands to generate.