Skip to contentSkip to conversation

Fix command line for obtaining version number

PATCH Applied Avi Kivity 2 participants 2 messages Mar 29, 2009 – Mar 30, 2009 KVM

lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 Fix command line for obtaining version number

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

---
 client/tests/kvm_runtest_2/kvm_preprocessing.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm_runtest_2/kvm_preprocessing.py +1 -1
index 5cd6e10..c9eb35d 100644
@@ -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:
Signature · 1 line
1.6.0.6
Applied
#1 lore raw
Quoted 12 lines · Avi Kivity

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

---
 client/tests/kvm_runtest_2/kvm_preprocessing.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm_runtest_2/kvm_preprocessing.py +0 -0
index 5cd6e10..c9eb35d 100644

client/tests/kvm_runtest_2/kvm_preprocessing.py def preprocess(test, params, env): · line 220

Quoted 8 lines
client/tests/kvm_runtest_2/kvm_preprocessing.py +1 -1
@@ -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.