diff mbox

KVM test: physical_resources_check: Initialize output

Message ID 1294673265-6427-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues Jan. 10, 2011, 3:27 p.m. UTC
None
diff mbox

Patch

diff --git a/client/tests/kvm/tests/physical_resources_check.py b/client/tests/kvm/tests/physical_resources_check.py
index b9542b7..54bfbd9 100644
--- a/client/tests/kvm/tests/physical_resources_check.py
+++ b/client/tests/kvm/tests/physical_resources_check.py
@@ -53,6 +53,7 @@  def run_physical_resources_check(test, params, env):
     def check_num(devices, info_cmd, check_str):
         f_fail = 0
         expected_num = params.objects(devices).__len__()
+        o = ""
         try:
             o = vm.monitor.info(info_cmd)
         except kvm_monitor.MonitorError, e:
@@ -84,6 +85,7 @@  def run_physical_resources_check(test, params, env):
             expected = params.object_params(chk_device).get(fmt_model)
             if not expected:
                 expected = "rtl8139"
+            o = ""
             try:
                 o = vm.monitor.info(info_cmd)
             except kvm_monitor.MonitorError, e:
@@ -115,6 +117,7 @@  def run_physical_resources_check(test, params, env):
     n_fail += f_fail
 
     logging.info("Network card MAC check")
+    o = ""
     try:
         o = vm.monitor.info("network")
     except kvm_monitor.MonitorError, e: