From patchwork Tue Jan 11 13:13:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 471521 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 p0BDDSjh008028 for ; Tue, 11 Jan 2011 13:13:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932148Ab1AKNNa (ORCPT ); Tue, 11 Jan 2011 08:13:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932144Ab1AKNN2 (ORCPT ); Tue, 11 Jan 2011 08:13:28 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0BDDRtk015664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Jan 2011 08:13:27 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0BDDRLa013230; Tue, 11 Jan 2011 08:13:27 -0500 Received: from qu0061.eng.lab.tlv.redhat.com ([10.35.16.61]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p0BDD9nY025030; Tue, 11 Jan 2011 08:13:26 -0500 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 12/26] KVM test: kvm_preprocessing.py: remove some unnecessary debug messages Date: Tue, 11 Jan 2011 15:13:24 +0200 Message-Id: <1294751618-21631-12-git-send-email-mgoldish@redhat.com> In-Reply-To: <1294751618-21631-1-git-send-email-mgoldish@redhat.com> References: <1294751618-21631-1-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 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]); Tue, 11 Jan 2011 13:13:34 +0000 (UTC) diff --git a/client/tests/kvm/kvm_preprocessing.py b/client/tests/kvm/kvm_preprocessing.py index 5a452fa..7b3b75b 100644 --- a/client/tests/kvm/kvm_preprocessing.py +++ b/client/tests/kvm/kvm_preprocessing.py @@ -51,9 +51,7 @@ def preprocess_vm(test, params, env, name): """ logging.debug("Preprocessing VM '%s'..." % name) vm = env.get_vm(name) - if vm: - logging.debug("VM object found in environment") - else: + if not vm: logging.debug("VM object does not exist; creating it") vm = kvm_vm.VM(name, params, test.bindir, env.get("address_cache")) env.register_vm(name, vm) @@ -116,10 +114,7 @@ def postprocess_vm(test, params, env, name): """ logging.debug("Postprocessing VM '%s'..." % name) vm = env.get_vm(name) - if vm: - logging.debug("VM object found in environment") - else: - logging.debug("VM object does not exist in environment") + if not vm: return scrdump_filename = os.path.join(test.debugdir, "post_%s.ppm" % name)