From patchwork Thu Jun 11 11:15:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Lublin X-Patchwork-Id: 29526 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5BBFlfX007973 for ; Thu, 11 Jun 2009 11:15:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762965AbZFKLPh (ORCPT ); Thu, 11 Jun 2009 07:15:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762923AbZFKLPh (ORCPT ); Thu, 11 Jun 2009 07:15:37 -0400 Received: from mx2.redhat.com ([66.187.237.31]:36072 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762791AbZFKLPg (ORCPT ); Thu, 11 Jun 2009 07:15:36 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5BBFWWK014044; Thu, 11 Jun 2009 07:15:32 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5BBFVki009562; Thu, 11 Jun 2009 07:15:31 -0400 Received: from localhost.localdomain (dhcp-1-187.tlv.redhat.com [10.35.1.187]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5BBFQcK026875; Thu, 11 Jun 2009 07:15:29 -0400 From: Uri Lublin To: kvm@vger.kernel.org, autotest@test.kernel.org Cc: lmr@redhat.com, supriyak@in.ibm.com Subject: [KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations) Date: Thu, 11 Jun 2009 14:15:25 +0300 Message-Id: <1244718925-24670-2-git-send-email-uril@redhat.com> In-Reply-To: <1244718925-24670-1-git-send-email-uril@redhat.com> References: <1244718925-24670-1-git-send-email-uril@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Supriya Kannery Default is to run each test once. Just add iterations = N in kvm_tests.cfg to the test(s) you want to run multiple times. Signed-off-by: Supriya Kannery Cc : Michael Goldish Signed-off-by: Uri Lublin --- client/tests/kvm/control | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/control b/client/tests/kvm/control index b3543ee..c030a14 100644 --- a/client/tests/kvm/control +++ b/client/tests/kvm/control @@ -145,8 +145,10 @@ for dict in list: dependencies_satisfied = False break if dependencies_satisfied: + test_iterations=int(dict.get("iterations", 1)) current_status = job.run_test("kvm", params=dict, - tag=dict.get("shortname")) + tag=dict.get("shortname"), + iterations=test_iterations) else: current_status = False status_dict[dict.get("name")] = current_status