Skip to contentSkip to conversation

KVM test: kvm_tests: fix a litte bug in timedrift()

PATCH In review Cao, Chen 2 participants 2 messages Aug 28, 2009 KVM

lore
Share & tools
lore

Cao, Chen

author
#0 lore raw

PATCH 1/1 KVM test: kvm_tests: fix a litte bug in timedrift()

the original version compared a wrong drift value with given threshold.

---
 client/tests/kvm/kvm_tests.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm/kvm_tests.py +1 -1
index b100269..4e3391e 100644
@@ -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)
 
Signature · 1 line
1.6.0.6
#1 lore raw

Ok, applied, thanks!

Quoted 28 lines · Chen

the original version compared a wrong drift value with given threshold.

---
 client/tests/kvm/kvm_tests.py |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm/kvm_tests.py +0 -0
index b100269..4e3391e 100644
@@ -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
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Signature · 1 line
Lucas