From patchwork Sun Mar 29 15:07:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 14990 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2TF8EV8029324 for ; Sun, 29 Mar 2009 15:08:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757573AbZC2PIN (ORCPT ); Sun, 29 Mar 2009 11:08:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757547AbZC2PIN (ORCPT ); Sun, 29 Mar 2009 11:08:13 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47858 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757527AbZC2PIN (ORCPT ); Sun, 29 Mar 2009 11:08:13 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2TF8Bo3020861 for ; Sun, 29 Mar 2009 11:08:11 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n2TF8BSV020573; Sun, 29 Mar 2009 11:08:11 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n2TF8AHs005701; Sun, 29 Mar 2009 11:08:10 -0400 Received: from localhost.localdomain (cleopatra.tlv.redhat.com [10.35.255.11]) by cleopatra.tlv.redhat.com (Postfix) with ESMTP id 384C3A010D; Sun, 29 Mar 2009 18:07:47 +0300 (IDT) From: Avi Kivity To: Uri Lublin 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 Message-Id: <1238339266-24816-1-git-send-email-avi@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Plain 'qemu' now runs an empty VM; a -help is needed to get the help message. Signed-off-by: Avi Kivity --- 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: