From d49a8fc073b1c9edf72ec35fff0636ba7775dac8 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 17 Nov 2014 17:56:43 +0100 Subject: [PATCH] The test runner should only start tests if the name starts with the same letters. --- test/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run.py b/test/run.py index 82a48fdc..a48e1fb2 100755 --- a/test/run.py +++ b/test/run.py @@ -276,7 +276,7 @@ def collect_file_tests(lines, lines_to_execute): def collect_dir_tests(base_dir, test_files, check_thirdparty=False): for f_name in os.listdir(base_dir): - files_to_execute = [a for a in test_files.items() if a[0] in f_name] + files_to_execute = [a for a in test_files.items() if f_name.startswith(a[0])] lines_to_execute = reduce(lambda x, y: x + y[1], files_to_execute, []) if f_name.endswith(".py") and (not test_files or files_to_execute): skip = None