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

Unified Diff: bin/au_test_harness/dev_server_wrapper.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/au_test_harness/cros_au_test_harness.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/dev_server_wrapper.py
diff --git a/bin/au_test_harness/dev_server_wrapper.py b/bin/au_test_harness/dev_server_wrapper.py
index 01b52d4d7d93f5500e4cc375370b112b1fe35a50..6af89d6a3edda4711a378aeb5c9554a69c4fd80b 100644
--- a/bin/au_test_harness/dev_server_wrapper.py
+++ b/bin/au_test_harness/dev_server_wrapper.py
@@ -5,6 +5,7 @@
"""Module containing methods and classes to interact with a devserver instance.
"""
+import os
import threading
import cros_build_lib as cros_lib
@@ -19,8 +20,9 @@ def GenerateUpdateId(target, src, key):
class DevServerWrapper(threading.Thread):
"""A Simple wrapper around a dev server instance."""
- def __init__(self):
+ def __init__(self, test_root):
self.proc = None
+ self.test_root = test_root
threading.Thread.__init__(self)
def run(self):
@@ -32,7 +34,9 @@ class DevServerWrapper(threading.Thread):
'--archive_dir=./static',
'--client_prefix=ChromeOSUpdateEngine',
'--production',
- ], enter_chroot=True, print_cmd=False)
+ ], enter_chroot=True, print_cmd=False,
+ log_to_file=os.path.join(self.test_root,
+ 'dev_server.log'))
def Stop(self):
"""Kills the devserver instance."""
« no previous file with comments | « bin/au_test_harness/cros_au_test_harness.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