autotest/virt-test — pull request #351 by FengYang (2013-05-06 09:49:31+00:00)
Title: qemu: sync eject_media test case to upstream

Signed-off-by: Feng Yang

Date: Thu Mar 10 16:01:13 2011 +0800

KVM Test: Add eject_media new test script.

Signed-off-by: Feng Yang
Acked-by: Amos Kong
Acked-by: Qingtang Zhou

Date: Tue May 31 11:07:29 2011 +0000

KVM-test: Wait the cdrom init in RHEL5 host in eject test

In RHEL5 host 4.9 guests need some time to init cdrom device. If
this process not finished the device will be locked automatically.
And this will cause test report failed because of locked device
can not be eject. So add sleep in every step of this test to make
sure the init and eject operate finished before we check info.
Also modify the removable device check pattern to suitable for
both RHEL5 and RHEL6 host.

Signed-off-by: Yiqiao Pu
Acked-by: Feng Yang
Acked-by: Qingtang Zhou

Date: Thu Dec 22 14:20:08 2011 +0000

KVM Test: Update eject_media test script.

Make it works with qmp changes in rhel6.
Make it works for both rhel6 and rhel5.
Use error.context in script.
Update test script description.
Put get_block to virt_test_utils.py

Changes from v1:
Call get_block and check_block_locked from kvm_vm.py
Changes from v2:
Typo fix chang -> change
Do not import virt_test_utils, do not need it now.

Signed-off-by: Feng Yang

Date: Thu Sep 13 11:31:20 2012 +0800

KVM Test: Change utils_misc.has_option to utils_misc.qemu_has_option

utils_misc.has_option have been renamed to utils_misc.qemu_has_option

We need update script use new interface.

Signed-off-by: Feng Yang