From patchwork Mon Jan 10 15:27:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 469061 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 p0AFRtgY013823 for ; Mon, 10 Jan 2011 15:27:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753809Ab1AJP1x (ORCPT ); Mon, 10 Jan 2011 10:27:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20310 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751816Ab1AJP1w (ORCPT ); Mon, 10 Jan 2011 10:27:52 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0AFRpjD001761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 10 Jan 2011 10:27:51 -0500 Received: from freedom.redhat.com (vpn-8-214.rdu.redhat.com [10.11.8.214]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0AFRlgU029578; Mon, 10 Jan 2011 10:27:49 -0500 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH] KVM test: physical_resources_check: Initialize output Date: Mon, 10 Jan 2011 13:27:45 -0200 Message-Id: <1294673265-6427-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 10 Jan 2011 15:27:56 +0000 (UTC) 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: