tests: Fix parallel-vm.py test case name parsing
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>
This commit is contained in:
parent
4f76eb81e9
commit
de52a2e259
1 changed files with 13 additions and 9 deletions
|
@ -357,15 +357,19 @@ def main():
|
||||||
codecov = False
|
codecov = False
|
||||||
|
|
||||||
first_run_failures = []
|
first_run_failures = []
|
||||||
tests = []
|
if args.params:
|
||||||
cmd = [ os.path.join(os.path.dirname(scriptsdir), 'run-tests.py'), '-L' ]
|
tests = args.params
|
||||||
if args.testmodules:
|
else:
|
||||||
cmd += [ "-f" ]
|
tests = []
|
||||||
cmd += args.testmodules
|
cmd = [ os.path.join(os.path.dirname(scriptsdir), 'run-tests.py'),
|
||||||
lst = subprocess.Popen(cmd, stdout=subprocess.PIPE)
|
'-L' ]
|
||||||
for l in lst.stdout.readlines():
|
if args.testmodules:
|
||||||
name = l.split(' ')[0]
|
cmd += [ "-f" ]
|
||||||
tests.append(name)
|
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:
|
if len(tests) == 0:
|
||||||
sys.exit("No test cases selected")
|
sys.exit("No test cases selected")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue