From patchwork Mon Mar 22 02:43:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Goldish X-Patchwork-Id: 87330 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2M2iaZS010902 for ; Mon, 22 Mar 2010 02:44:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753819Ab0CVCob (ORCPT ); Sun, 21 Mar 2010 22:44:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55263 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753708Ab0CVCoa (ORCPT ); Sun, 21 Mar 2010 22:44:30 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2M2iT9j029566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 21 Mar 2010 22:44:29 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2M2iSG1017796; Sun, 21 Mar 2010 22:44:28 -0400 Received: from localhost.localdomain (dhcp-1-188.tlv.redhat.com [10.35.1.188]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o2M2iMqI031710; Sun, 21 Mar 2010 22:44:27 -0400 From: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Cc: Michael Goldish Subject: [KVM-AUTOTEST PATCH 4/5] KVM test: make kvm_stat usage optional Date: Mon, 22 Mar 2010 04:43:16 +0200 Message-Id: <1269225797-11827-4-git-send-email-mgoldish@redhat.com> In-Reply-To: <1269225797-11827-3-git-send-email-mgoldish@redhat.com> References: <1269225797-11827-1-git-send-email-mgoldish@redhat.com> <1269225797-11827-2-git-send-email-mgoldish@redhat.com> <1269225797-11827-3-git-send-email-mgoldish@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 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.3 (demeter.kernel.org [140.211.167.41]); Mon, 22 Mar 2010 02:44:36 +0000 (UTC) diff --git a/client/tests/kvm/kvm_utils.py b/client/tests/kvm/kvm_utils.py index cc39b5d..5834539 100644 --- a/client/tests/kvm/kvm_utils.py +++ b/client/tests/kvm/kvm_utils.py @@ -845,8 +845,8 @@ def run_tests(test_list, job): @return: True, if all tests ran passed, False if any of them failed. """ status_dict = {} - failed = False + for dict in test_list: if dict.get("skip") == "yes": continue @@ -863,12 +863,12 @@ def run_tests(test_list, job): test_tag = dict.get("shortname") # Setting up kvm_stat profiling during test execution. # We don't need kvm_stat profiling on the build tests. - if "build" in test_tag: + if dict.get("run_kvm_stat") == "yes": + profile = True + else: # None because it's the default value on the base_test class # and the value None is specifically checked there. profile = None - else: - profile = True if profile: job.profilers.add('kvm_stat') diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 9963a44..b13aec4 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -40,6 +40,9 @@ nic_mode = user nic_script = scripts/qemu-ifup address_index = 0 +# Misc +run_kvm_stat = yes + # Tests variants: