Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1855)

Unified Diff: content/test/gpu/run_gpu_integration_test.py

Issue 2686123002: Write GPU integration test arguments to runner output JSON (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/run_gpu_integration_test.py
diff --git a/content/test/gpu/run_gpu_integration_test.py b/content/test/gpu/run_gpu_integration_test.py
index 63694002cb70c5cee4c5c6e316a4bc6d0b90c8fd..27bf30cf854ea3a0e797e0ad2f7de86d2a7c84bc 100755
--- a/content/test/gpu/run_gpu_integration_test.py
+++ b/content/test/gpu/run_gpu_integration_test.py
@@ -14,13 +14,14 @@ path_util.SetupTelemetryPaths()
from telemetry.testing import browser_test_runner
-def PostprocessJSON(file_name):
+def PostprocessJSON(file_name, run_test_args):
def TrimPrefix(s):
return s[1 + s.rfind('.'):]
with open(file_name) as f:
test_result = json.load(f)
test_result['successes'] = map(TrimPrefix, test_result['successes'])
test_result['failures'] = map(TrimPrefix, test_result['failures'])
+ test_result['run_test_args'] = run_test_args
with open(file_name, 'w') as f:
json.dump(test_result, f)
@@ -39,7 +40,7 @@ def main():
help=('Full path for json results'))
option, _ = parser.parse_known_args(rest_args)
if option.write_abbreviated_json_results_to:
- PostprocessJSON(option.write_abbreviated_json_results_to)
+ PostprocessJSON(option.write_abbreviated_json_results_to, rest_args)
return retval
if __name__ == '__main__':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698