So we don't have errors when the monitor function "info" fails, leading to an undefined variable error. Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx> --- client/tests/kvm/tests/physical_resources_check.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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: -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html