diff mbox

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

Message ID 1238339266-24816-1-git-send-email-avi@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Avi Kivity March 29, 2009, 3:07 p.m. UTC
Plain 'qemu' now runs an empty VM; a -help is needed to get the help message.

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

Comments

Uri Lublin March 30, 2009, 7:33 a.m. UTC | #1
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@redhat.com>
> ---
>  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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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: