Change login key name from _duration to _timeout for clarity, since other
variables named _duration are used differently. There was a race condition on
end_time where test could fail if final savevm_delay plus testing time, took
longer than pre-set end_time. Modify test to loop through a fixed number of
save/restore cycles instead of testing for a fixed time period. The duration
of each cycle is compared to the second cycle. Any lengthening of cycle
duration beyond a threshold causes test to fail.
Chris Evich (6):
kvm boot_savevm test: boot_savevm: Change login key name from _duration to
_timeout for clarity
kvm boot_savevm test: Test time differences instead of total time
kvm boot_savevm test: Add test-duration floor check to catch breakage
early
kvm boot_savevm test: Fix bug from switch to for loop
kvm boot_savevm test: Added some debugging output
kvm boot_savevm test: Skip first cycle to avoid virgin cache effects.
client/tests/kvm/subtests.cfg.sample | 13 ++++++++-
client/tests/kvm/tests/boot_savevm.py | 43 +++++++++++++++++++++++++-------
2 files changed, 44 insertions(+), 12 deletions(-)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest