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:
Marek Marczykowski-Górecki 2016-02-10 17:46:55 +01:00 committed by Wojtek Porczyk
parent 05d006b873
commit 12941d67bf

View File

@ -351,7 +351,7 @@ def main():
for name in args.names:
suite.addTests(
[test for test in list_test_cases(alltests)
if (str(test)+'/').startswith(name.replace('.', '/')+'/')])
if (str(test)+'/').startswith(name+'/')])
else:
suite.addTests(loader.loadTestsFromName('qubes.tests'))