Bug 1105204 - Fix jit_test.py -f (by restoring code I thought was dead). r=mjrosenb

CLOSED TREE
This commit is contained in:
Emanuel Hoogeveen 2014-11-26 01:46:00 -05:00
Родитель 0d8fb4da63
Коммит 3db0f9d2df
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -599,15 +599,21 @@ def print_test_summary(num_tests, failures, complete, doing, options):
traceback.print_exc()
sys.stderr.write('---\n')
def show_test(res):
if options.show_failed:
print(' ' + subprocess.list2cmdline(res.cmd))
else:
print(' ' + ' '.join(res.test.jitflags + [res.test.path]))
print('FAILURES:')
for res in failures:
if not res.timed_out:
print(' ' + ' '.join(res.test.jitflags + [res.test.path]))
show_test(res)
print('TIMEOUTS:')
for res in failures:
if res.timed_out:
print(' ' + ' '.join(res.test.jitflags + [res.test.path]))
show_test(res)
else:
print('PASSED ALL' + ('' if complete else ' (partial run -- interrupted by user %s)' % doing))