]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix parallel-vm.py test case name parsing
authorJouni Malinen <j@w1.fi>
Sat, 14 Mar 2015 10:12:01 +0000 (12:12 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 14 Mar 2015 10:12:01 +0000 (12:12 +0200)
The 'params' argument was not used at all. Use it as an alternative
means for setting the list of test cases to execute.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/vm/parallel-vm.py

index 4622512c284a94c3cd28dc4d89a743b2f11c8b95..ae43fe0aa4114e6c709710e97b070ee2121ba64b 100755 (executable)
@@ -357,15 +357,19 @@ def main():
         codecov = False
 
     first_run_failures = []
-    tests = []
-    cmd = [ os.path.join(os.path.dirname(scriptsdir), 'run-tests.py'), '-L' ]
-    if args.testmodules:
-        cmd += [ "-f" ]
-        cmd += args.testmodules
-    lst = subprocess.Popen(cmd, stdout=subprocess.PIPE)
-    for l in lst.stdout.readlines():
-        name = l.split(' ')[0]
-        tests.append(name)
+    if args.params:
+        tests = args.params
+    else:
+        tests = []
+        cmd = [ os.path.join(os.path.dirname(scriptsdir), 'run-tests.py'),
+                '-L' ]
+        if args.testmodules:
+            cmd += [ "-f" ]
+            cmd += args.testmodules
+        lst = subprocess.Popen(cmd, stdout=subprocess.PIPE)
+        for l in lst.stdout.readlines():
+            name = l.split(' ')[0]
+            tests.append(name)
     if len(tests) == 0:
         sys.exit("No test cases selected")