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

Unified Diff: tools/telemetry/telemetry/unittest/json_results.py

Issue 430933004: Mark json results failures as unexpected in python tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copy/paste into mini_installer Created 6 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
« no previous file with comments | « mojo/tools/run_mojo_python_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/unittest/json_results.py
diff --git a/tools/telemetry/telemetry/unittest/json_results.py b/tools/telemetry/telemetry/unittest/json_results.py
index 72c20f62ef11acc86d083e40825ad1023143244d..76a5c28ccb09f61186f309449376cacf0b419ac1 100644
--- a/tools/telemetry/telemetry/unittest/json_results.py
+++ b/tools/telemetry/telemetry/unittest/json_results.py
@@ -68,10 +68,14 @@ def _FullResults(suite, result, metadata):
full_results['tests'] = {}
for test_name in all_test_names:
- value = {
- 'expected': 'PASS',
- 'actual': 'FAIL' if (test_name in failed_test_names) else 'PASS',
- }
+ value = {}
+ value['expected'] = 'PASS'
+ if test_name in failed_test_names:
+ value['actual'] = 'FAIL'
+ value['is_unexpected'] = True
+ else:
+ value['actual'] = 'PASS'
+
_AddPathToTrie(full_results['tests'], test_name, value)
return full_results
« no previous file with comments | « mojo/tools/run_mojo_python_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698