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>
Add virsh desc testing, include virsh cmd update, new test and new config

This case include following parts:
1). For running domain, get/set description&title with options.
2). For shut off domian, get/set description&title with options.
3). For persistent/transient domain, get/set description&title with options.
4). Several negative test

Signed-off-by: Yanbing Du <ydu@redhat.com>
iscsi: Fix two regular expression patterns

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.virsh: Add pool_create and vol_create_from APIs

Signed-off-by: Yanbing Du <ydu@redhat.com>
libvirt: Add new virsh_vol_create_from test

Test virsh vol-create-from command to cover the following matrix:

pool = [source, destination]
pool_type = [dir, disk, fs, logical, netfs, iscsi, scsi]
volume_format = [raw, qcow2, qed]

Note, both 'iscsi' and 'scsi' type pools don't support create volume
using virsh, so which can't be destination pools. And for disk pool,
it can't create volumes with specified format.

Signed-off-by: Yanbing Du <ydu@redhat.com>
qemu.test: add missed param for block_stream test

add 'tmp_dir' parms for block_stream test;

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.test: adjust block streaming test parms

increased default wait streaming finished timeout values to avoild test
failed when test big image;

Signed-off-by: Xu Tian <xutian@redhat.com>