tests: Update test cases use vm_arch_name instead of platform

platform is an old parameter we used. Should use vm_arch_name now.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Use parameter vm_arch_name to judge guest os arch

image_name may be customized and not end with 64.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Calculate fill timeout based on the ksm size

As the ksm size is calculate based on guest and host memory status,
when we run tests in big host, we need fill very big size of memory.
With current set up, it will failed with timeout to wait the results.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.qemu_qtree: Fix class regexp for parsing qtree

The PCI address is hex so the correct regexp should match \w instead of \d

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.pci_devices: Style cleanup

Split functions into subfunctions and prepare the test for multiple
parts with exception in the end.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.pci_devices: Add verification lspci vs. qtree

Additional check for (not only) correct pci addresses in qtree and lspci.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.pci_devices: Add docstrings/pylint

Add some docstrings and other pylint fixes.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests: Add flags for add_flag test

Some flags need to be added depends on the host type for the add_flag
test of boot_cpu_model.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Correct the timeoout type to float

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #1113 from jferlan/virsh_volume

virsh_volume: Adjust for upstream change
Merge pull request #1130 from ldoktor/add_device3

qemu.tests.pci_devices: Support for lspci verification
Merge pull request #1129 from ypu/ksm

Enlarge ksm overcommit test time
Merge pull request #1121 from humanux/vhostforce

virt.test: modify vhost config for file_transfer test
qemu.tests.cfg: Update main monitor in qmp_basic test

As this case define the monitors with its owner name. Need also
update the main_monitor to fit the monitor name change. Otherwise
function monitor() in qemu_vm will return None.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.cfg: Use image_snapshot for enable snapshot for each guest

Use image_snapshot = yes to cfg file instead of set extra_params. To ignore
the problem that this parameter is set to no in other cfg files which will
corrupte the image.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Update cdrom image file name

The image_name for cdroms in our cfg files should be cdrom. So
need to update it, otherwise the cdrom device without file
will use the image_name defined for hard disk.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
key_event_form.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
rv_input.py: Rewrite from wxPython to PyGTK.

Signed-off-by: Milan Barta <mbarta@redhat.com>
tests/rv_clearx.py: Removing clearx

It's a lot better to clean interface from rv_connect

Signed-off-by: Tomas Jamrisko <tjamrisk@redhat.com>
qemu/tests/smartcard_setup.py: Clear gnome session.

Clear gnome session in the beginning of the test.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>