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

Unified Diff: build/android/pylib/results/json_results.py

Issue 2933993002: Add local results details pages.
Patch Set: Add --local-output arg which enables local results detail pages. Created 3 years, 5 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
Index: build/android/pylib/results/json_results.py
diff --git a/build/android/pylib/results/json_results.py b/build/android/pylib/results/json_results.py
index 19fc60fb7f47574fabc1a7cdbb1142e5ed2c6e99..5a2d4d4af285b9e2effffcaf439db07f1c956e8e 100644
--- a/build/android/pylib/results/json_results.py
+++ b/build/android/pylib/results/json_results.py
@@ -137,6 +137,7 @@ def GenerateJsonResultsFile(test_run_result, file_path, global_tags=None):
with open(file_path, 'w') as json_result_file:
json_result_file.write(json.dumps(
GenerateResultsDict(test_run_result, global_tags=global_tags)))
+ json_result_file.flush()
jbudorick 2017/08/10 16:27:38 Exiting the context manager here should flush the
def ParseResultsFromJson(json_results):

Powered by Google App Engine
This is Rietveld 408576698