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

Unified Diff: mojo/tools/run_mojo_python_tests.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 | « chrome/test/mini_installer/test_installer.py ('k') | tools/telemetry/telemetry/unittest/json_results.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/run_mojo_python_tests.py
diff --git a/mojo/tools/run_mojo_python_tests.py b/mojo/tools/run_mojo_python_tests.py
index da9ab63f5923fa346ac34969e9c20e5eea2f7468..6adac58b8706687ec69dbe9a3061f7837574f73e 100755
--- a/mojo/tools/run_mojo_python_tests.py
+++ b/mojo/tools/run_mojo_python_tests.py
@@ -95,10 +95,13 @@ 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 | « chrome/test/mini_installer/test_installer.py ('k') | tools/telemetry/telemetry/unittest/json_results.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698