KVM test: kvm_tests: fix a litte bug in timedrift()
PATCH 1/1 KVM test: kvm_tests: fix a litte bug in timedrift()
the original version compared a wrong drift value with given threshold.
Signed-off-by Cao, Chen <[email protected]>
--- client/tests/kvm/kvm_tests.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/kvm/kvm_tests.py +1 -1
@@ -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
Ok, applied, thanks!
Quoted 28 lines · Chen
the original version compared a wrong drift value with given threshold.
Signed-off-by Cao, Chen <[email protected]>---
client/tests/kvm/kvm_tests.py | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)client/tests/kvm/kvm_tests.py +0
-0@@ -773,7 +773,7 @@ def run_timedrift(test, params, env): # Fail the test if necessaryif drift >
drift_threshold:
raiseerror.TestFail("Time drift too large: %.2f%%" % drift)
- if drift >drift_threshold_after_rest:
+ ifdrift_total>drift_threshold_after_rest:
raiseerror.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