| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Module containing class that implements an au_worker for a test device.""" | 5 """Module containing class that implements an au_worker for a test device.""" |
| 6 | 6 |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 import cros_build_lib as cros_lib | 9 import cros_build_lib as cros_lib |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 stateful_change_flag, | 46 stateful_change_flag, |
| 47 '--verify', | 47 '--verify', |
| 48 ] | 48 ] |
| 49 if proxy_port: cmd.append('--proxy_port=%s' % proxy_port) | 49 if proxy_port: cmd.append('--proxy_port=%s' % proxy_port) |
| 50 self.RunUpdateCmd(cmd) | 50 self.RunUpdateCmd(cmd) |
| 51 | 51 |
| 52 def VerifyImage(self, unittest, percent_required_to_pass=100): | 52 def VerifyImage(self, unittest, percent_required_to_pass=100): |
| 53 """Verifies an image using run_remote_tests.sh with verification suite.""" | 53 """Verifies an image using run_remote_tests.sh with verification suite.""" |
| 54 test_directory = self.GetNextResultsPath('verify') | 54 test_directory = self.GetNextResultsPath('verify') |
| 55 output = cros_lib.RunCommand( | 55 output = cros_lib.RunCommand( |
| 56 ['%s/run_remote_tests.sh' % self.crosutils, | 56 ['run_remote_tests.sh', |
| 57 '--remote=%s' % self.remote, | 57 '--remote=%s' % self.remote, |
| 58 '--results_dir_root=%s' % test_directory, | 58 '--results_dir_root=%s' % test_directory, |
| 59 self.verify_suite, | 59 self.verify_suite, |
| 60 ], error_ok=True, enter_chroot=False, redirect_stdout=True) | 60 ], error_ok=True, enter_chroot=True, redirect_stdout=True, |
| 61 cwd=self.crosutils) |
| 61 return self.AssertEnoughTestsPassed(unittest, output, | 62 return self.AssertEnoughTestsPassed(unittest, output, |
| 62 percent_required_to_pass) | 63 percent_required_to_pass) |
| 63 | 64 |
| OLD | NEW |