diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-01-04 14:17:57 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-01-05 10:05:06 +0000 |
commit | 39d357e3248f80abea0159765ff39554affb40db (patch) | |
tree | aba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/testing/scripts/common.py | |
parent | 87778abf5a1f89266f37d1321b92a21851d8244d (diff) | |
download | qtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz |
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2
Change-Id: I20d43c737f82764d857ada9a55586901b18b9243
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/testing/scripts/common.py')
-rw-r--r-- | chromium/testing/scripts/common.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chromium/testing/scripts/common.py b/chromium/testing/scripts/common.py index 5cba136cb51..ee49a892692 100644 --- a/chromium/testing/scripts/common.py +++ b/chromium/testing/scripts/common.py @@ -22,6 +22,10 @@ SRC_DIR = os.path.abspath( MAX_FAILURES_EXIT_STATUS = 101 +# Exit code to indicate infrastructure issue. +INFRA_FAILURE_EXIT_CODE = 87 + + def run_script(argv, funcs): def parse_json(path): with open(path) as f: @@ -59,9 +63,9 @@ def run_script(argv, funcs): return args.func(args) -def run_command(argv, env=None): - print 'Running %r' % argv - rc = subprocess.call(argv, env=env) +def run_command(argv, env=None, cwd=None): + print 'Running %r in %r (env: %r)' % (argv, cwd, env) + rc = subprocess.call(argv, env=env, cwd=cwd) print 'Command %r returned exit code %d' % (argv, rc) return rc |