tests: do not unnecessary mangle test name passed as runner parameter
Otherwise `qubes.tests.run -l` output would not be useful as input for test list.
This commit is contained in:
parent
05d006b873
commit
12941d67bf
@ -351,7 +351,7 @@ def main():
|
|||||||
for name in args.names:
|
for name in args.names:
|
||||||
suite.addTests(
|
suite.addTests(
|
||||||
[test for test in list_test_cases(alltests)
|
[test for test in list_test_cases(alltests)
|
||||||
if (str(test)+'/').startswith(name.replace('.', '/')+'/')])
|
if (str(test)+'/').startswith(name+'/')])
|
||||||
else:
|
else:
|
||||||
suite.addTests(loader.loadTestsFromName('qubes.tests'))
|
suite.addTests(loader.loadTestsFromName('qubes.tests'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user