mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add -m (for match) switch to test.py.
Usage: test.py -m rtc/
This commit is contained in:
1 parent
33771d372b
commit
1c0e7fbc8b
1 file changed
+3
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user