summaryrefslogtreecommitdiffstats
path: root/testrunner/run_command.py
diff options
context:
space:
mode:
authorBrett Chabot <brettchabot@android.com>2009-10-26 14:51:45 -0700
committerBrett Chabot <brettchabot@android.com>2009-10-26 17:52:34 -0700
commit99e5f91aab4eed7fd8761dbec05d16b54e63374a (patch)
tree354d9025d32ad57152020ae449b5ffe8bcf96df8 /testrunner/run_command.py
parenta73e4f9af7cafc9db6331ab0522c27bf75b2c3b2 (diff)
downloadandroid_development-99e5f91aab4eed7fd8761dbec05d16b54e63374a.tar.gz
android_development-99e5f91aab4eed7fd8761dbec05d16b54e63374a.tar.bz2
android_development-99e5f91aab4eed7fd8761dbec05d16b54e63374a.zip
Fix runcommand logging exception.
BUG 2215978
Diffstat (limited to 'testrunner/run_command.py')
-rwxr-xr-xtestrunner/run_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testrunner/run_command.py b/testrunner/run_command.py
index 926cc6b77..d398daa28 100755
--- a/testrunner/run_command.py
+++ b/testrunner/run_command.py
@@ -112,7 +112,7 @@ def RunOnce(cmd, timeout_time=None, return_output=True, stdin_input=None):
logger.Log(e)
so.append("ERROR")
error_occurred = True
- if pipe.returncode != 0:
+ if pipe.returncode:
logger.SilentLog("Error: %s returned %d error code" %(cmd,
pipe.returncode))
error_occurred = True