mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Add -m (for match) switch to test.py.
Usage: test.py -m rtc/
This commit is contained in:
parent
33771d372b
commit
1c0e7fbc8b
4
test.py
4
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user