Add -m (for match) switch to test.py.

Usage: test.py -m rtc/
This commit is contained in:
Unknown W. Brackets 2013-12-12 21:12:27 -08:00
parent 33771d372b
commit 1c0e7fbc8b

View File

@ -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)