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

Unified Diff: bin/au_test_harness/real_au_worker.py

Issue 6614029: Add ability to pass a base test root and create results dirs relative. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: ws 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/au_test_harness/dummy_au_worker.py ('k') | bin/au_test_harness/vm_au_worker.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/au_test_harness/real_au_worker.py
diff --git a/bin/au_test_harness/real_au_worker.py b/bin/au_test_harness/real_au_worker.py
index 492d2e24c9fafb877fe4b813c46e3c47b539ecf8..43b8c2e62c977ce5db2d0c79e2a69be1e880d41a 100644
--- a/bin/au_test_harness/real_au_worker.py
+++ b/bin/au_test_harness/real_au_worker.py
@@ -13,9 +13,9 @@ import au_worker
class RealAUWorker(au_worker.AUWorker):
"""Test harness for updating real images."""
- def __init__(self, options):
+ def __init__(self, options, test_results_root):
"""Processes non-vm-specific options."""
- au_worker.AUWorker.__init__(self, options)
+ au_worker.AUWorker.__init__(self, options, test_results_root)
self.remote = options.remote
if not self.remote: cros_lib.Die('We require a remote address for tests.')
@@ -51,9 +51,11 @@ class RealAUWorker(au_worker.AUWorker):
def VerifyImage(self, unittest, percent_required_to_pass=100):
"""Verifies an image using run_remote_tests.sh with verification suite."""
+ test_directory = self.GetNextResultsPath('verify')
output = cros_lib.RunCommand(
['%s/run_remote_tests.sh' % self.crosutils,
'--remote=%s' % self.remote,
+ '--results_dir_root=%s' % test_directory,
self.verify_suite,
], error_ok=True, enter_chroot=False, redirect_stdout=True)
return self.AssertEnoughTestsPassed(unittest, output,
« no previous file with comments | « bin/au_test_harness/dummy_au_worker.py ('k') | bin/au_test_harness/vm_au_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698