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

Side by Side Diff: bin/cros_au_test_harness.py

Issue 6507034: I'm still breaking the build. Reverting again until I figure out why. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | run_remote_tests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """This module runs a suite of Auto Update tests. 7 """This module runs a suite of Auto Update tests.
8 8
9 The tests can be run on either a virtual machine or actual device depending 9 The tests can be run on either a virtual machine or actual device depending
10 on parameters given. Specific tests can be run by invoking --test_prefix. 10 on parameters given. Specific tests can be run by invoking --test_prefix.
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 '--verify', 508 '--verify',
509 ] 509 ]
510 if proxy_port: cmd.append('--proxy_port=%s' % proxy_port) 510 if proxy_port: cmd.append('--proxy_port=%s' % proxy_port)
511 self.RunUpdateCmd(cmd) 511 self.RunUpdateCmd(cmd)
512 512
513 def VerifyImage(self, percent_required_to_pass): 513 def VerifyImage(self, percent_required_to_pass):
514 """Verifies an image using run_remote_tests.sh with verification suite.""" 514 """Verifies an image using run_remote_tests.sh with verification suite."""
515 output = RunCommand([ 515 output = RunCommand([
516 '%s/run_remote_tests.sh' % self.crosutils, 516 '%s/run_remote_tests.sh' % self.crosutils,
517 '--remote=%s' % self.remote, 517 '--remote=%s' % self.remote,
518 '--hide_info',
519 self.verify_suite, 518 self.verify_suite,
520 ], error_ok=True, enter_chroot=False, redirect_stdout=True) 519 ], error_ok=True, enter_chroot=False, redirect_stdout=True)
521 return self.AssertEnoughTestsPassed(self, output, percent_required_to_pass) 520 return self.AssertEnoughTestsPassed(self, output, percent_required_to_pass)
522 521
523 522
524 class VirtualAUTest(unittest.TestCase, AUTest): 523 class VirtualAUTest(unittest.TestCase, AUTest):
525 """Test harness for updating virtual machines.""" 524 """Test harness for updating virtual machines."""
526 525
527 # Class variables used to acquire individual VM variables per test. 526 # Class variables used to acquire individual VM variables per test.
528 _vm_lock = threading.Lock() 527 _vm_lock = threading.Lock()
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 # Can't run in parallel with only one remote device. 1068 # Can't run in parallel with only one remote device.
1070 test_suite = _PrepareTestSuite(parser, options, test_class) 1069 test_suite = _PrepareTestSuite(parser, options, test_class)
1071 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite) 1070 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite)
1072 if not test_result.wasSuccessful(): Die('Test harness failed.') 1071 if not test_result.wasSuccessful(): Die('Test harness failed.')
1073 finally: 1072 finally:
1074 my_server.Stop() 1073 my_server.Stop()
1075 1074
1076 1075
1077 if __name__ == '__main__': 1076 if __name__ == '__main__':
1078 main() 1077 main()
OLDNEW
« no previous file with comments | « no previous file | run_remote_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698