From 1c0e7fbc8bc78e0774a400fe63bafed1e0e6e935 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 12 Dec 2013 21:12:27 -0800 Subject: [PATCH] Add -m (for match) switch to test.py. Usage: test.py -m rtc/ --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 91f6b6ce86..7826c4d3df 100755 --- a/test.py +++ b/test.py @@ -337,7 +337,7 @@ def run_tests(test_list, args): if len(test_filenames): # TODO: Maybe --compare should detect --graphics? cmdline = [PPSSPP_EXE, '--compare', '--timeout=' + str(TIMEOUT), '@-'] - cmdline.extend([i for i in args if i not in ['-g']]) + cmdline.extend([i for i in args if i not in ['-g', '-m']]) c = Command(cmdline, '\n'.join(test_filenames)) c.run(TIMEOUT * len(test_filenames)) @@ -364,6 +364,8 @@ def main(): tests = tests_good else: tests = tests_next + tests_good + elif '-m' in args: + tests = [i for i in tests_next + tests_good if i.startswith(tests[0])] run_tests(tests, args)