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

Side by Side Diff: bin/cros_au_test_harness.py

Issue 6529010: Add --quiet to run_remote_tests, and use it (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Fix quiet help message 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') | run_remote_tests.sh » ('J')
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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 else: 459 else:
460 (code, stdout, stderr) = RunCommandCaptureOutput(cmd) 460 (code, stdout, stderr) = RunCommandCaptureOutput(cmd)
461 if code != 0: 461 if code != 0:
462 raise UpdateException(code, stdout) 462 raise UpdateException(code, stdout)
463 463
464 def VerifyImage(self, percent_required_to_pass): 464 def VerifyImage(self, percent_required_to_pass):
465 """Verifies an image using run_remote_tests.sh with verification suite.""" 465 """Verifies an image using run_remote_tests.sh with verification suite."""
466 output = RunCommand([ 466 output = RunCommand([
467 '%s/run_remote_tests.sh' % self.crosutils, 467 '%s/run_remote_tests.sh' % self.crosutils,
468 '--remote=%s' % self.remote, 468 '--remote=%s' % self.remote,
469 '--quiet',
469 self.verify_suite, 470 self.verify_suite,
470 ], error_ok=True, enter_chroot=False, redirect_stdout=True) 471 ], error_ok=True, enter_chroot=False, redirect_stdout=True)
471 return self.AssertEnoughTestsPassed(self, output, percent_required_to_pass) 472 return self.AssertEnoughTestsPassed(self, output, percent_required_to_pass)
472 473
473 474
474 class VirtualAUTest(unittest.TestCase, AUTest): 475 class VirtualAUTest(unittest.TestCase, AUTest):
475 """Test harness for updating virtual machines.""" 476 """Test harness for updating virtual machines."""
476 477
477 # VM Constants. 478 # VM Constants.
478 _FULL_VDISK_SIZE = 6072 479 _FULL_VDISK_SIZE = 6072
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 else: 971 else:
971 dev_server_cache = None 972 dev_server_cache = None
972 test_suite = _PrepareTestSuite(parser, options, test_class) 973 test_suite = _PrepareTestSuite(parser, options, test_class)
973 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite) 974 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite)
974 if not test_result.wasSuccessful(): 975 if not test_result.wasSuccessful():
975 Die('Test harness was not successful.') 976 Die('Test harness was not successful.')
976 977
977 978
978 if __name__ == '__main__': 979 if __name__ == '__main__':
979 main() 980 main()
OLDNEW
« no previous file with comments | « no previous file | run_remote_tests.sh » ('j') | run_remote_tests.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698