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>
virttest.remote: Support to handle prompts of ESX server.

Currently, remote.handle_prompts(...) only support ssh and telnet.
To connect ESX server with "esx://IP/...", it should add prompts
to matched list for esx connection.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
v2v.tests: Specify vm_type for v2v.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.bootstrap: Recover missing lines.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
v2v.tests: Add testcases for v2ving vmware vms.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #774 from FengYang/device

Add device_assignment new test case
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: propcan clean some old style construction.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: propcan change __slots__ listing to avoid waste a memory.

class X:
   __slots__ = ['a', 'b']

class Y(X):
   __slots__ = X.__slots__ + ['c']

Double declaring of slots causes a waste of memory
and aims to bad manners to slots.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Replace class method with class attribute

There are very few places that need to re-calculate all ancestor
__slots__ values. It's more efficient to just store them as
an instance attribute, set from __new__().  I also updated
all users dependent on the old __slots__ behavior to use
the new __all_slots__ attribute instead.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Make special methods in propcan special

Burried in docstrings are instructions that using propcan's
special dict_set, super_set, etc. methods is for subclasses only
(i.e. not for test-modules!)  One test was doing this, so I assume
the convension is/could/would be lost on other people also.  Renamed
these special methods with double-underscore names to flag them as
being special.  Updated documentation (in case it gets read) also,
but I'm assuming the new names will serve as a better deterance
to using them.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: virsh_cpu_compare test shouldn't use special methods

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: nodev-xml unittest bugfixes

The unittests were mistakenly relying on the host system's
virsh/libvird state.  Mocked up the used dumpxml method
to make the unittest self-contained.  There was also a bug
in passing the dummy virsh instance in as a positional instead
of named parameter.  API changes were made but unittests never
updated.  They're all passing now.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Fix vm_xml to use new propcan methods

The propcan dict_get, dict_set, dict_del were renamed
with double-underscores in a prior commit, but updating
this module was missed.

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Propcan additional fixes

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Fix spelling mistakse

Signed-off-by: Chris Evich <cevich@redhat.com>