public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations)
@ 2009-06-11 11:15 Uri Lublin
  2009-06-11 11:15 ` Uri Lublin
  0 siblings, 1 reply; 3+ messages in thread
From: Uri Lublin @ 2009-06-11 11:15 UTC (permalink / raw)
  To: kvm, autotest; +Cc: lmr, supriyak


The following patch did not make it in the merge.
I've been waiting for the merge to stabilize first.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations)
  2009-06-11 11:15 [KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations) Uri Lublin
@ 2009-06-11 11:15 ` Uri Lublin
  2009-06-12 19:43   ` Lucas Meneghel Rodrigues
  0 siblings, 1 reply; 3+ messages in thread
From: Uri Lublin @ 2009-06-11 11:15 UTC (permalink / raw)
  To: kvm, autotest; +Cc: lmr, supriyak

From: Supriya Kannery <supriyak@in.ibm.com>

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 <supriyak@in.ibm.com>
Cc : Michael Goldish <mgoldish@redhat.com>
Signed-off-by: Uri Lublin <uril@redhat.com>
---
 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
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations)
  2009-06-11 11:15 ` Uri Lublin
@ 2009-06-12 19:43   ` Lucas Meneghel Rodrigues
  0 siblings, 0 replies; 3+ messages in thread
From: Lucas Meneghel Rodrigues @ 2009-06-12 19:43 UTC (permalink / raw)
  To: Uri Lublin; +Cc: kvm, autotest, supriyak

On Thu, 2009-06-11 at 14:15 +0300, Uri Lublin wrote:
> From: Supriya Kannery <supriyak@in.ibm.com>
> 
> 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 <supriyak@in.ibm.com>
> Cc : Michael Goldish <mgoldish@redhat.com>
> Signed-off-by: Uri Lublin <uril@redhat.com>
> ---
>  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

Looks good to me, applied. Thanks!

-- 
Lucas Meneghel Rodrigues
Software Engineer (QE)
Red Hat - Emerging Technologies


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-12 19:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 11:15 [KVM-AUTOTEST][PATCH] Enable running test(s) multiple times (iterations) Uri Lublin
2009-06-11 11:15 ` Uri Lublin
2009-06-12 19:43   ` Lucas Meneghel Rodrigues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox