summaryrefslogtreecommitdiff
path: root/tools/write_gn_args.py
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-06-08 04:46:57 -0700
committerRyan Dahl <ry@tinyclouds.org>2019-06-08 07:46:57 -0400
commit5960e398ecab914effec821cc6da5f3a091fdb50 (patch)
treebb12c155ef59b725dcc0d7a32b757e47718cdaa1 /tools/write_gn_args.py
parent4ea2df6759abf3a99e07fe720987805075c8a18b (diff)
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.
Diffstat (limited to 'tools/write_gn_args.py')
-rw-r--r--tools/write_gn_args.py3
1 files changed, 2 insertions, 1 deletions
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)