diff options
author | Andy Hayden <andyhayden1@gmail.com> | 2019-06-08 04:46:57 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-08 07:46:57 -0400 |
commit | 5960e398ecab914effec821cc6da5f3a091fdb50 (patch) | |
tree | bb12c155ef59b725dcc0d7a32b757e47718cdaa1 /tools/benchmark.py | |
parent | 4ea2df6759abf3a99e07fe720987805075c8a18b (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/benchmark.py')
-rwxr-xr-x | tools/benchmark.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/benchmark.py b/tools/benchmark.py index 03fcc497e..41dbc5b96 100755 --- a/tools/benchmark.py +++ b/tools/benchmark.py @@ -11,7 +11,7 @@ import sys import json import time import shutil -from util import run, run_output, root_path, build_path, executable_suffix +from util import root_path, run, run_output, build_path, executable_suffix import tempfile import http_server import throughput_benchmark @@ -212,7 +212,8 @@ def main(argv): print "Usage: tools/benchmark.py [build_dir]" sys.exit(1) - sha1 = run_output(["git", "rev-parse", "HEAD"]).strip() + sha1 = run_output(["git", "rev-parse", "HEAD"], + exit_on_fail=True).out.strip() http_server.spawn() deno_exe = os.path.join(build_dir, "deno") |