tests: allow real prefix notation for selecting tests

This commit is contained in:
Marek Marczykowski-Górecki 2016-04-03 03:41:55 +02:00 committed by Wojtek Porczyk
parent 7f5feac98b
commit c07981da88

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+'/')])
if (str(test)).startswith(name)])
else:
suite.addTests(loader.loadTestsFromName('qubes.tests'))