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

Side by Side Diff: bin/au_test_harness/cros_au_test_harness.py

Issue 6672007: Add logs for update_engine and image_to_live to test artifacts. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Fix bug in RunCommand Created 9 years, 9 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 | « bin/au_test_harness/au_worker.py ('k') | bin/au_test_harness/dev_server_wrapper.py » ('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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 _InsertPublicKeyIntoImage(options.base_image, options.public_key) 273 _InsertPublicKeyIntoImage(options.base_image, options.public_key)
274 options.clean = True 274 options.clean = True
275 275
276 # Clean up previous work if requested. 276 # Clean up previous work if requested.
277 if options.clean: _CleanPreviousWork(options) 277 if options.clean: _CleanPreviousWork(options)
278 278
279 # Generate cache of updates to use during test harness. 279 # Generate cache of updates to use during test harness.
280 update_cache = _PregenerateUpdates(options) 280 update_cache = _PregenerateUpdates(options)
281 au_worker.AUWorker.SetUpdateCache(update_cache) 281 au_worker.AUWorker.SetUpdateCache(update_cache)
282 282
283 my_server = dev_server_wrapper.DevServerWrapper() 283 my_server = dev_server_wrapper.DevServerWrapper(
284 au_test.AUTest.test_results_root)
284 my_server.start() 285 my_server.start()
285 try: 286 try:
286 if options.type == 'vm': 287 if options.type == 'vm':
287 _RunTestsInParallel(options) 288 _RunTestsInParallel(options)
288 else: 289 else:
289 # TODO(sosa) - Take in a machine pool for a real test. 290 # TODO(sosa) - Take in a machine pool for a real test.
290 # Can't run in parallel with only one remote device. 291 # Can't run in parallel with only one remote device.
291 test_suite = _PrepareTestSuite(options) 292 test_suite = _PrepareTestSuite(options)
292 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite) 293 test_result = unittest.TextTestRunner(verbosity=2).run(test_suite)
293 if not test_result.wasSuccessful(): cros_lib.Die('Test harness failed.') 294 if not test_result.wasSuccessful(): cros_lib.Die('Test harness failed.')
294 finally: 295 finally:
295 my_server.Stop() 296 my_server.Stop()
296 297
297 298
298 if __name__ == '__main__': 299 if __name__ == '__main__':
299 main() 300 main()
OLDNEW
« no previous file with comments | « bin/au_test_harness/au_worker.py ('k') | bin/au_test_harness/dev_server_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698