The current implementation of libvirt vm requires a
vm login upon vm start, which is unnecessary and
conflict with tests such as boot_savevm. Now, we
can simplify the entire processing code by removing
the login and dropping wait_for_start method.
The behavior of vm.create() between libvirt and kvm
still differs in that libvirt only uses create() for
installs. This should be corrected in the future so
the vm class implimentation matches better.
Two new functions were defined for libvirt and
two new vm class methods. A private function
was added to uniformly generate VM save filenames.
The other four new functions allow save/restore
of VMs with or without an explicit filename.
For now, the changes involving libvirt vm.start()
don't appear to affect other tests. With that change
and the new functions, it's possible to make
an initial implimentation of the KVM boot_savevm
test under libvirt. Only minimal changes were required
to the test code from it's KVM version.
Chris Evich (4):
libvirt_vm: Fix vm.wait_for_start()
libvirt subtest: Copy kvm boot_savevm subtest
libvirt subtest: Convert boot_savevm for use with libvirt
libvirt subtest config: Reduce boot_savevm login timeout similar to
KVM test
client/tests/libvirt/subtests.cfg.sample | 2 +-
client/tests/{kvm => libvirt}/tests/boot_savevm.py | 37 ++++++++++---------
client/virt/libvirt_vm.py | 36 +++----------------
3 files changed, 25 insertions(+), 50 deletions(-)
copy client/tests/{kvm => libvirt}/tests/boot_savevm.py (63%)
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest