Index: au_test_harness/vm_au_worker.py |
diff --git a/au_test_harness/vm_au_worker.py b/au_test_harness/vm_au_worker.py |
index d3113f2bf240869bb89b15557182b95c52b41da9..aa4e929c6e25834ba3e6e2fd854669a22862675c 100644 |
--- a/au_test_harness/vm_au_worker.py |
+++ b/au_test_harness/vm_au_worker.py |
@@ -102,9 +102,9 @@ class VMAUWorker(au_worker.AUWorker): |
if self.graphics_flag: commandWithArgs.append(self.graphics_flag) |
self.TestInfo('Running smoke suite to verify image.') |
output = cros_lib.RunCommand( |
- commandWithArgs, error_ok=True, enter_chroot=False, |
- redirect_stdout=True, redirect_stderr=True, cwd=self.crosutilsbin, |
- print_cmd=False, combine_stdout_stderr=True) |
+ commandWithArgs, error_ok=(percent_required_to_pass != 100), |
+ enter_chroot=False, redirect_stdout=True, redirect_stderr=True, |
+ cwd=self.crosutilsbin, print_cmd=False, combine_stdout_stderr=True) |
return self.AssertEnoughTestsPassed(unittest, output, |
percent_required_to_pass) |