All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Uri Lublin <ulublin@redhat.com>
Cc: kvm@vger.kernel.org
Subject: [PATCH kvm-autotest] Fix command line for obtaining version number
Date: Sun, 29 Mar 2009 18:07:46 +0300	[thread overview]
Message-ID: <1238339266-24816-1-git-send-email-avi@redhat.com> (raw)

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:
-- 
1.6.0.6


             reply	other threads:[~2009-03-29 15:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-29 15:07 Avi Kivity [this message]
2009-03-30  7:33 ` [PATCH kvm-autotest] Fix command line for obtaining version number Uri Lublin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1238339266-24816-1-git-send-email-avi@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=ulublin@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.