From 9ac81acfeb30e24bbbacd1651d80aa2763939434 Mon Sep 17 00:00:00 2001 From: Viktoria Shirunova Date: Tue, 4 Oct 2022 15:36:25 +0300 Subject: [PATCH] es2panda/test runner: do not output logs for ignored failed tests. Artifacts are created for all failed tests as earlier. Signed-off-by: Viktoria Shirunova --- test/runner/runner_js.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/runner/runner_js.py b/test/runner/runner_js.py index 23044b5dd..02a2b5057 100644 --- a/test/runner/runner_js.py +++ b/test/runner/runner_js.py @@ -32,7 +32,7 @@ class RunnerJS(Runner): if args.aot: self.conf_kind = ConfigurationKind.AOT is_aot_full = len(list(filter( - lambda arg:"--compiler-inline-full-intrinsics=true" in arg, + lambda arg: "--compiler-inline-full-intrinsics=true" in arg, args.aot_args ))) > 0 if is_aot_full: @@ -188,12 +188,14 @@ class RunnerJS(Runner): failed_tests.append(report_path) else: report_path = path.join(report_root, f"{test_result.test_id}.report-{timestamp}.md") - print(f"Formatted report is saved to {report_path}") + if self.test_env.args.verbose: + print(f"Formatted report is saved to {report_path}") makedirs(path.dirname(report_path), exist_ok=True) write_2_file(report_path, test_result.get_formatted_report()) text_report_path = path.join(report_root, f"{test_result.test_id}.report-{timestamp}.log") write_2_file(text_report_path, test_result.get_text_report()) - print(f"Plain text report is saved to {text_report_path}") + if self.test_env.args.verbose: + print(f"Plain text report is saved to {text_report_path}") if not test_result.passed: if test_result.ignored: @@ -201,7 +203,7 @@ class RunnerJS(Runner): ignored_still_failed.append(test_result) else: self.failed += 1 - fail_lists[test_result.fail_kind].append(test_result) + fail_lists[test_result.fail_kind].append(test_result) else: self.passed += 1 if test_result.ignored: -- Gitee