From 401b36d40605ebf045cb0d1e2ddc156657418ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Osztrogon=C3=A1c?= Date: Tue, 4 Aug 2020 16:54:06 +0200 Subject: [PATCH] Make test262 output less verbose (#4108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Progress meter is precise and less verbose - Omit list of failures, test262.report file contains it JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu --- tools/runners/run-test-suite-test262.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tools/runners/run-test-suite-test262.py b/tools/runners/run-test-suite-test262.py index 0ddfda947..a422afcab 100755 --- a/tools/runners/run-test-suite-test262.py +++ b/tools/runners/run-test-suite-test262.py @@ -198,23 +198,30 @@ def main(args): with open(os.path.join(os.path.dirname(args.engine), 'test262.report'), 'w') as output_file: counter = 0 summary_found = False + summary_end_found = False while True: - counter += 1 output = proc.stdout.readline() if not output: break output_file.write(output) - if not summary_found and (counter % 100) == 0: - print("\rExecuted approx %d tests..." % counter, end='') if output.startswith('=== Summary ==='): summary_found = True print('') if summary_found: - print(output, end='') + if not summary_end_found: + print(output, end='') + if not output.strip(): + summary_end_found = True if 'All tests succeeded' in output: return_code = 0 + elif re.search('in (non-)?strict mode', output): + counter += 1 + if (counter % 100) == 0: + print(".", end='') + if (counter % 5000) == 0: + print(" Executed %d tests." % counter) proc.wait()