mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 514101: show running trace-test when interrupted by Ctrl+C, r=dvander
--HG-- extra : rebase_source : 3f85a036f9c4e732d247b8210d47845c2b141771
This commit is contained in:
parent
6771d193dd
commit
a69a6f44b9
@ -141,9 +141,13 @@ def run_tests(tests, test_dir, lib_dir):
|
||||
|
||||
failures = []
|
||||
complete = False
|
||||
doing = 'before starting'
|
||||
try:
|
||||
for i, test in enumerate(tests):
|
||||
doing = 'on %s'%test.path
|
||||
ok, out, err = run_test(test, lib_dir)
|
||||
doing = 'after %s'%test.path
|
||||
|
||||
if not ok:
|
||||
failures.append(test.path)
|
||||
|
||||
@ -191,7 +195,7 @@ def run_tests(tests, test_dir, lib_dir):
|
||||
else:
|
||||
print(' ' + test)
|
||||
else:
|
||||
print('PASSED ALL' + ('' if complete else ' (partial run -- interrupted by user)'))
|
||||
print('PASSED ALL' + ('' if complete else ' (partial run -- interrupted by user %s)'%doing))
|
||||
|
||||
if __name__ == '__main__':
|
||||
script_path = os.path.abspath(__file__)
|
||||
|
Loading…
Reference in New Issue
Block a user