mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
5960e398ec
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.
18 lines
495 B
Python
18 lines
495 B
Python
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
import os
|
|
import sys
|
|
import third_party
|
|
from util import run_output, build_path
|
|
|
|
out_filename = sys.argv[1]
|
|
|
|
args_list = run_output([
|
|
third_party.gn_path, "args",
|
|
build_path(), "--list", "--short", "--overrides-only"
|
|
],
|
|
quiet=True,
|
|
env=third_party.google_env(),
|
|
exit_on_fail=True).out
|
|
|
|
with open(out_filename, "w") as f:
|
|
f.write(args_list)
|