diff --git a/test/runner/runner_js.py b/test/runner/runner_js.py index 23044b5dd2cbb242eeab405fb2393e89805f2533..02a2b5057eaf5bf3ee51d2a2fd2ec0c2130d414e 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: