Signed-off-by: Chris Evich <[email protected]>
---
 client/tests/kvm/tests/boot_savevm.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/client/tests/kvm/tests/boot_savevm.py 
b/client/tests/kvm/tests/boot_savevm.py
index 6730447..e468bad 100644
--- a/client/tests/kvm/tests/boot_savevm.py
+++ b/client/tests/kvm/tests/boot_savevm.py
@@ -19,7 +19,8 @@ def run_boot_savevm(test, params, env):
     vm.verify_alive()
     savevm_delay = float(params.get("savevm_delay"))
     savevm_login_timeout = float(params.get("savevm_login_timeout"))
-    max_duration = -1 # check value. set after first cycle.
+    min_duration = 5 # sanity check.  cycle time duration floor.
+    max_duration = -1 # check value. set ceiling after first cycle.
     cycle_duration_threshold = float(params.get("cycle_duration_threshold"))
     savevm_cycles = int(params.get("savevm_cycles"))
     assert cycle_duration_threshold > 0.5
@@ -59,6 +60,7 @@ def run_boot_savevm(test, params, env):
         _do_cycle(cycle_number)
         end_time = time.time()
         duration = end_time - start_time
+        assert duration > min_duration # sanity check
         if cycle_number == 0: # simplify outer for loop
             max_duration = duration * (1.0 + cycle_duration_threshold)
         else:
-- 
1.7.1

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to