diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-05-09 14:22:11 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-05-09 15:11:45 +0000 |
commit | 2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c (patch) | |
tree | e75f511546c5fd1a173e87c1f9fb11d7ac8d1af3 /chromium/testing/scripts/common.py | |
parent | a4f3d46271c57e8155ba912df46a05559d14726e (diff) | |
download | qtwebengine-chromium-2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c.tar.gz |
BASELINE: Update Chromium to 51.0.2704.41
Also adds in all smaller components by reversing logic for exclusion.
Change-Id: Ibf90b506e7da088ea2f65dcf23f2b0992c504422
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'chromium/testing/scripts/common.py')
-rw-r--r-- | chromium/testing/scripts/common.py | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/chromium/testing/scripts/common.py b/chromium/testing/scripts/common.py index 69ee3e49b97..5cba136cb51 100644 --- a/chromium/testing/scripts/common.py +++ b/chromium/testing/scripts/common.py @@ -72,16 +72,15 @@ def run_runtest(cmd_args, runtest_args): sys.executable, os.path.join( cmd_args.paths['checkout'], 'infra', 'scripts', 'runtest_wrapper.py'), - '--path-build', cmd_args.paths['build'], '--', ] else: cmd = [ sys.executable, - os.path.join(cmd_args.paths['build'], 'scripts', 'tools', 'runit.py'), + cmd_args.paths['runit.py'], '--show-path', sys.executable, - os.path.join(cmd_args.paths['build'], 'scripts', 'slave', 'runtest.py'), + cmd_args.paths['runtest.py'], ] return run_command(cmd + [ '--target', cmd_args.build_config_fs, @@ -155,17 +154,15 @@ def parse_common_test_results(json_results, test_separator='/'): return results -def parse_gtest_test_results(json_results): - failures = set() - for cur_iteration_data in json_results.get('per_iteration_data', []): - for test_fullname, results in cur_iteration_data.iteritems(): - # Results is a list with one entry per test try. Last one is the final - # result, the only we care about here. - last_result = results[-1] +def run_integration_test(script_to_run, extra_args, log_file, output): + integration_test_res = subprocess.call( + [sys.executable, script_to_run] + extra_args) - if last_result['status'] != 'SUCCESS': - failures.add(test_fullname) + with open(log_file) as f: + failures = json.load(f) + json.dump({ + 'valid': integration_test_res == 0, + 'failures': failures, + }, output) - return { - 'failures': sorted(failures), - } + return integration_test_res |