Skip to content

Commit

Permalink
KVM test: Fix some typos on autotest run utility function
Browse files Browse the repository at this point in the history
Fix some typos found on the utility function that runs
autotest tests on a guest.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
  • Loading branch information
lmr committed Apr 7, 2010
1 parent b47b1b5 commit c69fdbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kvm/kvm_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ def extract(vm, remote_path, dest_dir="."):
@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" %
Expand Down Expand Up @@ -356,15 +356,15 @@ def extract(vm, remote_path, dest_dir="."):
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/*")
logging.info("---------------- Test output ----------------")
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")
Expand Down

0 comments on commit c69fdbb

Please sign in to comment.