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

Unified Diff: build/android/pylib/local/device/local_device_gtest_run.py

Issue 2760923002: [build/android] Fix device.RunShellCommand usages (Closed)
Patch Set: Created 3 years, 9 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: build/android/pylib/local/device/local_device_gtest_run.py
diff --git a/build/android/pylib/local/device/local_device_gtest_run.py b/build/android/pylib/local/device/local_device_gtest_run.py
index 552379dd6cb768091eb12be22186f5bfa73df7aa..4856f596d2bbc2b582ab4f0acb562c861aafd0a1 100644
--- a/build/android/pylib/local/device/local_device_gtest_run.py
+++ b/build/android/pylib/local/device/local_device_gtest_run.py
@@ -234,6 +234,8 @@ class _ExeDelegate(object):
except (device_errors.CommandFailedError, KeyError):
pass
+ # Executable tests return a nonzero exit code on test failure, which is
+ # fine from the test runner's perspective; thus check_return=False.
perezju 2017/03/20 15:22:58 Had to search through commit messages to figure ou
jbudorick 2017/03/20 15:27:02 woops, this is probably something I should've docu
output = device.RunShellCommand(
cmd, cwd=cwd, env=env, check_return=False, large_output=True, **kwargs)
return output

Powered by Google App Engine
This is Rietveld 408576698