Re: [PATCH kvm-autotest] Fix command line for obtaining version number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Avi Kivity wrote:
Plain 'qemu' now runs an empty VM; a -help is needed to get the help message.

Signed-off-by: Avi Kivity <avi@xxxxxxxxxx>
---
 client/tests/kvm_runtest_2/kvm_preprocessing.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm_runtest_2/kvm_preprocessing.py b/client/tests/kvm_runtest_2/kvm_preprocessing.py
index 5cd6e10..c9eb35d 100644
--- a/client/tests/kvm_runtest_2/kvm_preprocessing.py
+++ b/client/tests/kvm_runtest_2/kvm_preprocessing.py
@@ -214,7 +214,7 @@ def preprocess(test, params, env):
     # Get the KVM userspace version and write it as a keyval
     kvm_log.debug("Fetching KVM userspace version...")
     qemu_path = os.path.join(test.bindir, "qemu")
-    version_line = commands.getoutput("%s | head -n 1" % qemu_path)
+    version_line = commands.getoutput("%s -help | head -n 1" % qemu_path)
     exp = re.compile("[Vv]ersion .*?,")
     match = exp.search(version_line)
     if match:

Applied, Thanks.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux