virt: Fix login operation with vm without network interface.

It tries login over serial interface and don't waste time with
trying logging over net interface.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Allow set network interface parameters none.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds support for other get time methods.

adds hwclock and makes date more precisely.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds support for kernel extra params

kernel_extra_params = " ..."

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds timedrift test without network interface.

test:
   guest_suspend
   guest_pause_resume

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Add 'timeout' parameter to join() function of BackgroundTest class

Add 'timeout' parameter to join() function of BackgroundTest class in
virttest/utils_test.py, set default value to 600s.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.utils_test: Fix python 2.4 incompatibility

Every now and then we sneak a try/except/finally block
in the code, even though it's 2.4 illegal. Let's fix
it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest/qemu: PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.cfg: Update sr_iov_file_transfer.cfg

Signed-off-by: Feng Yang <fyang@redhat.com>
tests.shutdown: Support shutdown guest for multi times.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.multi_vms_file_transfer: Type fix, correct log filename.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Rename sr_iov_hotunplug.py -> qemu/tests/pci_hotunplug.py

sr_iov_hotunplug.py is not only used by sr-iov test case. So rename it
as pci_hotunplug.py

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.cfg: Add device_assignment new test case

This test cover some device assignment feature test case

Signed-off-by: Feng Yang <fyang@redhat.com>
virt: Fix spelling mistakse

Signed-off-by: Chris Evich <cevich@redhat.com>
tools: Reduce codespell noise, improve accuracy

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: libvirt_xml new_from_dumpxml fixes

Signed-off-by: Chris Evich <cevich@redhat.com>
libvirt: fix the shutoff tests

The shutoff tests need to have the guest in offline state.
Adding this option ensure that the guest will be offline
before test starts.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virt: Print different message if no module found and fix issues

1. When no module found by run_unittest.py, print message:
   "No test module was found!"
2. In run_test() function, move "__import__" and "getattr"
   into try part that, if exception occur in import or getattr,
   print_fail() won't be executed.
3. Fix some issues found by run_pylint.py

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Modify cgconfig service control in virsh numatune test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Import module from virttest.staging first

As module under virttest.staging may include some functions that is
not in autotest package yet. So we should import them first. Otherwise
the new modification and functions may can not be found during test.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>