From patchwork Thu Oct 7 22:30:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 239051 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o97MVKSh011070 for ; Thu, 7 Oct 2010 22:31:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751466Ab0JGWbS (ORCPT ); Thu, 7 Oct 2010 18:31:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33532 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978Ab0JGWbR (ORCPT ); Thu, 7 Oct 2010 18:31:17 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o97MVGCY001774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Oct 2010 18:31:16 -0400 Received: from doriath (ovpn-113-106.phx2.redhat.com [10.3.113.106]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o97MUw6C016610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 7 Oct 2010 18:31:08 -0400 Date: Thu, 7 Oct 2010 19:30:57 -0300 From: Luiz Capitulino To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, lmr@redhat.com, ehabkost@redhat.com Subject: [PATCH] kvm_monitor.py: is_responsive(): Use status command Message-ID: <20101007193057.05266ab3@doriath> Organization: Red Hat Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 07 Oct 2010 22:31:21 +0000 (UTC) diff --git a/client/tests/kvm/kvm_monitor.py b/client/tests/kvm/kvm_monitor.py index 9a66388..8c92413 100644 --- a/client/tests/kvm/kvm_monitor.py +++ b/client/tests/kvm/kvm_monitor.py @@ -243,7 +243,7 @@ class HumanMonitor(Monitor): @return: True if responsive, False otherwise """ try: - self._get_command_output("help") + self._get_command_output("info status") return True except MonitorError: return False @@ -548,7 +548,7 @@ class QMPMonitor(Monitor): @return: True if responsive, False otherwise """ try: - self._get_command_output("query-version") + self._get_command_output("query-status") return True except MonitorError: return False