diff mbox

[KVM-AUTOTEST] KVM test: kvm_tests: fix a litte bug in timedrift()

Message ID 1251453326-29140-1-git-send-email-kcao@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Cao, Chen Aug. 28, 2009, 9:55 a.m. UTC
the original version compared a wrong drift value with given threshold.

Signed-off-by: Cao, Chen <kcao@redhat.com>
---
 client/tests/kvm/kvm_tests.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Lucas Meneghel Rodrigues Aug. 28, 2009, 5:30 p.m. UTC | #1
Ok, applied, thanks!

On Fri, Aug 28, 2009 at 6:55 AM, Cao, Chen<kcao@redhat.com> wrote:
> the original version compared a wrong drift value with given threshold.
>
> Signed-off-by: Cao, Chen <kcao@redhat.com>
> ---
>  client/tests/kvm/kvm_tests.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py
> index b100269..4e3391e 100644
> --- a/client/tests/kvm/kvm_tests.py
> +++ b/client/tests/kvm/kvm_tests.py
> @@ -773,7 +773,7 @@ def run_timedrift(test, params, env):
>     # Fail the test if necessary
>     if drift > drift_threshold:
>         raise error.TestFail("Time drift too large: %.2f%%" % drift)
> -    if drift > drift_threshold_after_rest:
> +    if drift_total > drift_threshold_after_rest:
>         raise error.TestFail("Time drift too large after rest period: %.2f%%"
>                              % drift_total)
>
> --
> 1.6.0.6
>
> _______________________________________________
> Autotest mailing list
> Autotest@test.kernel.org
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
>
diff mbox

Patch

diff --git a/client/tests/kvm/kvm_tests.py b/client/tests/kvm/kvm_tests.py
index b100269..4e3391e 100644
--- a/client/tests/kvm/kvm_tests.py
+++ b/client/tests/kvm/kvm_tests.py
@@ -773,7 +773,7 @@  def run_timedrift(test, params, env):
     # Fail the test if necessary
     if drift > drift_threshold:
         raise error.TestFail("Time drift too large: %.2f%%" % drift)
-    if drift > drift_threshold_after_rest:
+    if drift_total > drift_threshold_after_rest:
         raise error.TestFail("Time drift too large after rest period: %.2f%%"
                              % drift_total)