shared.cfg: Disable S3/S4 test on all ppc64 guests

According to https://github.com/autotest/virt-test/pull/558
All S3/S4 tests should be disabled on ppc64 guests.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Add a class named RemoteFile in virttest-remote module.

A class to handle remote file.
Currently, we support three operations on remote file.
add: append lines in to file.
sub: replace string which match pattern to repl.
remove: delete lines that match pattern.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add some unittest for RemoteFile.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Fix for RemoteFile and unittest.

(1).Change uuid to tempfile to build a unique filename.
(2).Add a __del__ method for unittest class to remove remote_file.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>

Fix indenting error in remote.py.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
qemu.tests.cpu_hotplug: Make cpu hotplug command configurable.

cpu_set command will be removed in new qemu. So make cpu hotplug
 command configurable.

'cpu_set 1 online' will always sent out as human monitor command no matter
 qmp support cpu_set or not.

Update it to 'cpu_set cpu=1,state=online'. send_args_cmd() will transfer
it to correct human monitor command 'cpu_set 1 online'. Or correct qmp
monitor command if qmp support it.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.usb: Disable xhci on old RHEL guests

These RHEL guests older than RHEL5 aren't shipped
with xhci driver. Disable xhci testing on them.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.usb: Disable usb_audio on RHEL7 host

The RHEL7 host doesn't have usb_audio support now.
Disable it.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Merge autotest and virttest cgroup_utils library

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Fix all libvirt_vm.libvirtd to utils_libvirtd.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add utils_libvirtd module into virttest.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>

Add remote implement for status action.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add unittest for utils_libvirtd.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
virttest.utils_libvirtd: Catch session exception for status action.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
tests.guest_suspend: Fix the wrong separator for cpu flags

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu: Reset image_extra_params parameter in some block tests.

These tests will create some other format of image, so the
options for qcow3 would affect them.
To make these cases still work with qcow3 format, reset the
'image_extra_params' parameter in them.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
tests.boot_savevm: Get parameters with new method in virt-test

If the parameters are missing, just skip this test.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Merge pull request #526 from yangdongsheng/remote_edit

Add remote_edit method into virttest/remote.py.
virt: repair Cart config unittest test data.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #595 from jzupka/repair_cart_unit

virt: repair Cart config unittest test data.
Merge pull request #592 from zhouqt/minor-fix

qemu: Minor fixes for qemu test cases
Merge pull request #588 from xutian/fix_block_stream

qemu.test: make block_stream test work with qmp monitor