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

Unified Diff: scripts/slave/recipe_modules/chromium_android/api.py

Issue 2191853004: [Android] Add step text for host_info when failures are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: [Android] Add step text for host_info when failures are detected. Created 4 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 | scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Galaxy_S5_Perf__1_.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/chromium_android/api.py
diff --git a/scripts/slave/recipe_modules/chromium_android/api.py b/scripts/slave/recipe_modules/chromium_android/api.py
index 3f875bf7865b03d6cfc2e5570b7b6a14bc00821f..39fe915419d05d1e553c2157dd37352e656e41b2 100644
--- a/scripts/slave/recipe_modules/chromium_android/api.py
+++ b/scripts/slave/recipe_modules/chromium_android/api.py
@@ -374,7 +374,7 @@ class AndroidApi(recipe_api.RecipeApi):
try:
with self.handle_exit_codes():
args.extend(['run', '--output', self.m.json.output()])
- self.m.step(
+ results = self.m.step(
'Host_Info',
[self.m.path['checkout'].join('testing', 'scripts',
'host_info.py')] + args,
@@ -382,7 +382,7 @@ class AndroidApi(recipe_api.RecipeApi):
infra_step=True,
step_test_data=lambda: self.m.json.test_api.output({
'valid': True,
- 'failures': [],
+ 'failures': ['Device 3208154b735c5117 blacklisted'],
'_host_info': {
'os_system': 'os_system',
'os_release': 'os_release',
@@ -418,6 +418,9 @@ class AndroidApi(recipe_api.RecipeApi):
}]
}}),
**kwargs)
+ if results.json.output.get('failures'):
+ results.presentation.logs['Failures'] = results.json.output['failures']
+ return results
except self.m.step.InfraFailure:
pass
« no previous file with comments | « no previous file | scripts/slave/recipes/android/perf.expected/full_chromium_perf_Android_Galaxy_S5_Perf__1_.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698