From patchwork Tue Oct 13 09:13:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yolkfull Chow X-Patchwork-Id: 53341 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 n9D9KNcM019646 for ; Tue, 13 Oct 2009 09:20:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751129AbZJMJNz (ORCPT ); Tue, 13 Oct 2009 05:13:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753450AbZJMJNz (ORCPT ); Tue, 13 Oct 2009 05:13:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45077 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751006AbZJMJNy (ORCPT ); Tue, 13 Oct 2009 05:13:54 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9D9DP6u027636; Tue, 13 Oct 2009 05:13:25 -0400 Received: from localhost.localdomain (dhcp-65-181.nay.redhat.com [10.66.65.181]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9D9DMoX032486; Tue, 13 Oct 2009 05:13:23 -0400 From: Yolkfull Chow To: kvm@vger.kernel.org, autotest@test.kernel.org Cc: Yolkfull Chow Subject: [PATCH] Little bug fix in pci_hotplug.py Date: Tue, 13 Oct 2009 17:13:23 +0800 Message-Id: <1255425203-7980-1-git-send-email-yzhou@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/client/tests/kvm/tests/pci_hotplug.py b/client/tests/kvm/tests/pci_hotplug.py index 01d9447..3ad9ea2 100644 --- a/client/tests/kvm/tests/pci_hotplug.py +++ b/client/tests/kvm/tests/pci_hotplug.py @@ -83,7 +83,7 @@ def run_pci_hotplug(test, params, env): # Test the newly added device s, o = session.get_command_status_output(params.get("pci_test_cmd")) - if s: + if s != 0: raise error.TestFail("Check for %s device failed after PCI hotplug. " "Output: %s" % (test_type, o))