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

Unified Diff: scripts/slave/recipe_modules/test_utils/test_api.py

Issue 2362733002: [swarming/api] Add text in to indicate whether a shard is failing (Closed)
Patch Set: Update swarming summary.json generation Created 4 years, 3 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: scripts/slave/recipe_modules/test_utils/test_api.py
diff --git a/scripts/slave/recipe_modules/test_utils/test_api.py b/scripts/slave/recipe_modules/test_utils/test_api.py
index e83f77bcde154f18be8bdc51a863b6ec3cc1e1a0..87bbe76e8263ec4266f86c7a8ae5c7be2e8d30e6 100644
--- a/scripts/slave/recipe_modules/test_utils/test_api.py
+++ b/scripts/slave/recipe_modules/test_utils/test_api.py
@@ -141,7 +141,8 @@ class TestUtilsTestApi(recipe_test_api.RecipeTestApi):
for i in xrange(shards):
jsonish_shards.append({
'failure': not passing,
- 'internal_failure': swarming_internal_failure
+ 'internal_failure': swarming_internal_failure,
+ 'exit_code': (1 if (not passing or swarming_internal_failure) else 0)
})
if i not in missing_shards:
swarming_path = str(i)

Powered by Google App Engine
This is Rietveld 408576698