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

Unified Diff: chrome/test/mini_installer/test_installer.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 | « no previous file | mojo/tools/run_mojo_python_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/mini_installer/test_installer.py
diff --git a/chrome/test/mini_installer/test_installer.py b/chrome/test/mini_installer/test_installer.py
index 681fba85459ce80b874ffa36181d8f87d9dd7b07..afb45dde27350f1aecc795c613624b6957439795 100644
--- a/chrome/test/mini_installer/test_installer.py
+++ b/chrome/test/mini_installer/test_installer.py
@@ -342,10 +342,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 | « no previous file | mojo/tools/run_mojo_python_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698