qemu.tests: update test script according test case

updated test script since case steps changed;

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.test: remove useless file

remove useless script block_stream_with_stress, since
block_stream_stress in used by block_stream.with_stress tests;

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #723 from xutian/fix_block_stream

some fix for block stream tests
qemu.tests.physical_resources_check: Use qemu_qtree to verify images

Replace the method which used only disk names to match autotest
image format with virttest.qemu_qtree one. It additionally verifies
all kind of other params of "info qtree" and "info block".

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.test: rename parameter md5sum

parameter 'md5sum' in test configuration file will conflict with
cdrom iso md5sum parameter, and it will caused md5sum mismatch error
when re-create(env_process.preprocess_vm) VM in test script, so rename
it;

Signed-off-by: Xu Tian <xutian@redhat.com>
shared/cfg/machines.cfg: Fix incorrect indentation

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_vm: change img_params to image_params

The later spelling is more clear, and used in more places
inside the code. This fixes a hidden problem in the command
creation code.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
qemu.tests.multi_nics_verify: Mofidy the method of get guest nics count

The output of ifconfig is different between different os,
so some time the regex can not get the nics number in the guest.
This patch try to fix this issue

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
tests.cfg.netperf.cfg : Make test support different types of network adapters

Remove the limit of virtio_net, make the test support different types of
network adapters like e1000 and rtl8139

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu_cpu.cfg: Remove PCLMULQDQ bug from whitelist

The pclmulqdq bug is fixed on qemu.git on commit
56383703c060777fd01aaf8d63d5f46d660e9fb9, so we can stop ignoring the
bug and report as an actual failure.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
qemu_cpu.cfg: Whitelist known (but harmless) RHEL6 SVM CPUID bug

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Merge pull request #741 from humanux/netperf

 tests.cfg.netperf.cfg : Make test support different types of network apapters
libvirt: Add unittests for virsh session manager

* test_del_VirshPersistent to make sure __del__ method works well.
* test_VirshSession to make sure VirshSession works well without virshPersistent.
* test_VirshPersistent to make sure COUNTERS in VirshPersistent works well.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt-virsh: cut off the reference from VirshClosure objects to virshpersistent.

In current code, VirshPersistent.__del__() will never be called in
`del virshPersistent_instance`
Because there are some other references to this object.
They are VirshClosure object. The VirshClosure.dict_like_instance is a
reference to VirshPersistent object. So, we can't use the del feature
of VirshPersistent at all.
So every test using VirshPersistent object will remain a virsh process
after exiting.

This patch fix this problem.
 * Change the dict_like_instance in VirshClosure from the reference of
Virsh object to another object named closure_args stored in VirshPersistent.
And we update the closure_args in setting slots of VirshPersistent to keep
the closure_args and VirshPersistent in-sync.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt-virsh: remove calling for undefined method in virshPersistent.__del__

Fix an error of exit. There is no method named exit in Virsh class,
So super().__exit__ in VirshPersistent will down.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt-virsh: Add autoclose param in VirshSession.__init__()

Add a param named auto_close into __init__ method of VirshSession. The default
value of this param is False, and it will not close the ShellSession when we derefer it.
So, I add this param to allow user pass a auto_close=True to use it more convinient.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt-virsh: update the using of VirshSession in VirshPersistent.

Introduce a class variable named COUNTERS in VirshPersistent. COUNTERS is a
dict whose key is a_id and value is counter. Two method counter_increase and
counter_decrease introduced in VirshPersistent at the same time. B/c VirshSession is
not auto closed, then we need to manage the VirshSession in VirshPersistent.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Merge pull request #609 from yangdongsheng/virshpersistent

libvirt: Virsh: session manager fixing.
qemu.tests: small bug fix in nmi_bsod_catch

Give a default value "" to reboot_after_config. Otherwise it will raise
an TypeError(argument of type 'NoneType' is not iterable) when it is None.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.qemu_qtree: Improve the drive_format check

Instead of checking disk device (ide-hd), check the superior bus
(ich9-ahci) to verify autotest drive_format.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>