Permalink
Browse files

virt: Fixes found by automated check script

1) Give exec permissions to clipboard script.
2) Indentation fix on utils_v2v module.
3) logging argument fixes in tests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
  • Loading branch information...
1 parent ae21501 commit 88e024262907edd176095fb470fcefa57f9d498b @lmr lmr committed Sep 24, 2012
Showing with 3 additions and 4 deletions.
  1. 0 shared/scripts/cb.py
  2. +1 −1 tests/ntttcp.py
  3. +2 −2 virttest/standalone_test.py
  4. +0 −1 virttest/utils_v2v.py
View
0 shared/scripts/cb.py 100755 → 100644
File mode changed.
View
2 tests/ntttcp.py
@@ -169,7 +169,7 @@ def parse_file(resultfile):
f = open("%s.RHS" % results_path, "w")
raw = " buf(k)| throughput(Mbit/s)"
logging.info(raw)
- f.write("#ver# %s\n#ver# host kernel: %s%s\n" %
+ f.write("#ver# %s\n#ver# host kernel: %s\n" %
(commands.getoutput("rpm -q qemu-kvm"), os.uname()[2]))
desc = """#desc# The tests are sessions of "NTttcp", send buf number is %s. 'throughput' was taken from ntttcp's report.
#desc# How to read the results:
View
4 virttest/standalone_test.py
@@ -170,9 +170,9 @@ def run_once(self):
logging.info("VM '%s' is alive.", vm.name)
for m in vm.monitors:
logging.info("It has a %s monitor unix socket at: %s",
- vm.name, m.protocol, m.filename)
+ m.protocol, m.filename)
logging.info("The command line used to start it was:\n%s",
- vm.name, vm.make_qemu_command())
+ vm.make_qemu_command())
raise error.JobError("Abort requested (%s)" % e)
return test_passed
View
1 virttest/utils_v2v.py
@@ -401,4 +401,3 @@ def v2v_cmd(params):
logging.debug('%s' % cmd)
cmd_result = utils.run(cmd, verbose=DEBUG)
return cmd_result
-

0 comments on commit 88e0242

Please sign in to comment.