diff mbox

Little bug fix in pci_hotplug.py

Message ID 1255425203-7980-1-git-send-email-yzhou@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yolkfull Chow Oct. 13, 2009, 9:13 a.m. UTC
None
diff mbox

Patch

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))