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

Unified Diff: client/tests/kvm/kvm_test_utils.py

Issue 1595019: Merge remote branch 'origin/upstream' into tempbranch (Closed)
Patch Set: Created 10 years, 8 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 | « client/tests/iperf/iperf.py ('k') | client/tests/lmbench/0001-Fix-build-issues-with-lmbench.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/kvm/kvm_test_utils.py
diff --git a/client/tests/kvm/kvm_test_utils.py b/client/tests/kvm/kvm_test_utils.py
index 6ba834a6506f53d8bf361a30087ab0e338b3c630..f51204473b6bd982ac15774c2a8823bf989d128a 100644
--- a/client/tests/kvm/kvm_test_utils.py
+++ b/client/tests/kvm/kvm_test_utils.py
@@ -298,12 +298,12 @@ def run_autotest(vm, session, control_path, timeout, test_name, outputdir):
@param dest_dir: Destination dir for the contents
"""
basename = os.path.basename(remote_path)
- logging.info("Extracting %s..." % basename)
+ logging.info("Extracting %s...", basename)
(status, output) = session.get_command_status_output(
"tar xjvf %s -C %s" % (remote_path, dest_dir))
if status != 0:
logging.error("Uncompress output:\n%s" % output)
- raise error.TestFail("Could not extract % on guest")
+ raise error.TestFail("Could not extract %s on guest" % basename)
if not os.path.isfile(control_path):
raise error.TestError("Invalid path to autotest control file: %s" %
@@ -356,7 +356,7 @@ def run_autotest(vm, session, control_path, timeout, test_name, outputdir):
raise error.TestFail("Could not copy the test control file to guest")
# Run the test
- logging.info("Running test '%s'..." % test_name)
+ logging.info("Running test '%s'...", test_name)
session.get_command_output("cd %s" % autotest_path)
session.get_command_output("rm -f control.state")
session.get_command_output("rm -rf results/*")
@@ -364,7 +364,7 @@ def run_autotest(vm, session, control_path, timeout, test_name, outputdir):
status = session.get_command_status("bin/autotest control",
timeout=timeout,
print_func=logging.info)
- logging.info("--------------End of test output ------------")
+ logging.info("------------- End of test output ------------")
if status is None:
raise error.TestFail("Timeout elapsed while waiting for autotest to "
"complete")
« no previous file with comments | « client/tests/iperf/iperf.py ('k') | client/tests/lmbench/0001-Fix-build-issues-with-lmbench.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698