From 99e5f91aab4eed7fd8761dbec05d16b54e63374a Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Mon, 26 Oct 2009 14:51:45 -0700 Subject: [PATCH] Fix runcommand logging exception. BUG 2215978 --- testrunner/run_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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