Fix command line for obtaining version number
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.
Signed-off-by Avi Kivity <[email protected]>
--- 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
@@ -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
Uri Lublin
AppliedQuoted 12 lines · Avi Kivity
Plain 'qemu' now runs an empty VM; a -help is needed to get the help message.
Signed-off-by Avi Kivity <[email protected]>--- 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
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.