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

Unified Diff: bin/au_test_harness/vm_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/real_au_worker.py ('k') | bin/ctest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/au_test_harness/vm_au_worker.py
diff --git a/bin/au_test_harness/vm_au_worker.py b/bin/au_test_harness/vm_au_worker.py
index 3d11cdc436aa94911c6dee20e80323e975ea9bdc..475db58cfb9dfff719fb6f266e76d78090e6275c 100644
--- a/bin/au_test_harness/vm_au_worker.py
+++ b/bin/au_test_harness/vm_au_worker.py
@@ -20,9 +20,9 @@ class VMAUWorker(au_worker.AUWorker):
_vm_lock = threading.Lock()
_next_port = 9222
- def __init__(self, options):
+ def __init__(self, options, test_results_root):
"""Processes vm-specific options."""
- au_worker.AUWorker.__init__(self, options)
+ au_worker.AUWorker.__init__(self, options, test_results_root)
self.graphics_flag = ''
if options.no_graphics: self.graphics_flag = '--no_graphics'
if not self.board: cros_lib.Die('Need board to convert base image to vm.')
@@ -95,6 +95,7 @@ class VMAUWorker(au_worker.AUWorker):
def VerifyImage(self, unittest, percent_required_to_pass=100):
"""Runs vm smoke suite to verify image."""
+ test_directory = self.GetNextResultsPath('verify')
# image_to_live already verifies lsb-release matching. This is just
# for additional steps.
commandWithArgs = ['%s/cros_run_vm_test' % self.crosutilsbin,
@@ -103,6 +104,7 @@ class VMAUWorker(au_worker.AUWorker):
'--persist',
'--kvm_pid=%s' % self._kvm_pid_file,
'--ssh_port=%s' % self._ssh_port,
+ '--results_dir_root=%s' % test_directory,
self.verify_suite,
]
if self.graphics_flag: commandWithArgs.append(self.graphics_flag)
« no previous file with comments | « bin/au_test_harness/real_au_worker.py ('k') | bin/ctest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698