From 5960e398ecab914effec821cc6da5f3a091fdb50 Mon Sep 17 00:00:00 2001 From: Andy Hayden Date: Sat, 8 Jun 2019 04:46:57 -0700 Subject: make tests quieter (#2468) Don't mix every http request in with the tests output. Don't print that the file servers are starting unless -vv flag is passed. Capture the output of run with run_output which returns stdout, stderr and exit_code. Test against this rather than relying on sys.exit. --- tools/write_gn_args.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools/write_gn_args.py') diff --git a/tools/write_gn_args.py b/tools/write_gn_args.py index 252ad54b8..145de4f49 100644 --- a/tools/write_gn_args.py +++ b/tools/write_gn_args.py @@ -11,7 +11,8 @@ args_list = run_output([ build_path(), "--list", "--short", "--overrides-only" ], quiet=True, - env=third_party.google_env()) + env=third_party.google_env(), + exit_on_fail=True).out with open(out_filename, "w") as f: f.write(args_list) -- cgit v1.2.3