util_test.libguestfs: Support choosing disk or domain in VirtTools.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Supplements for guestmount test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt.tests: fix no ip address for extra nics

Some guest (eg, sles, ubt) don't configure IP address for extra nics and
ping.multi_nic always failed because no IP for extra nic; fix this issue
by send pre_cmd to guest for asking IP from dhcp server before start test;

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

virt.tests: fix no ip address for extra nics
virttest: Add disable for warning color

Warning color is added but missed in disable. This will cause trouble
when pipe stdout into file.

Signed-off-by: Hao Liu <hliu@redhat.com>
autotest regression test: default to master branch

Since the next branch does not exist anymore.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
autotest regression test: fetch the installer script from the chosen branch

If using the github repo URL. If not, default to the script on the github
master branch.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #1191 from Hao-Liu/fix_warn_color

virttest: Add disable for warning color
virt: Fix hanging tail_threads which are created by recreating env.

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

Libguestfs: supplements of guestmount test.
Merge pull request #1195 from clebergnu/autotest_regression_branch

Autotest regression test
Merge pull request #1197 from jzupka/fix_tail_threads

virt: Fix hanging tail_threads which are created by recreating env.
virttest.qemu_devices: Use qid for hotplug verification

Proper identification in qemu_devices is object.get_qid().

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.virtio_console: Update test_hotplug_virtio_pci

Fix the problem with duplicated IDs caused by early device_del execution.
Monitor returns no output but internally waits for OS ACPI respone. This
message, in case kernel is not yet initialized, never occurs.

This version resends the device_del in the first round until it succeeds,
than it just waits until the device disappears.

Additionally the test was rewritten to use qemu_devices to handle the
hotplug/unplug and the test cfg was tweaked to be more intensive.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #1206 from ldoktor/virtio_console

qemu.tests.virtio_console: Update test_hotplug_virtio_pci
PEP8 mass auto fix

Catching up with some problems found w.r.t. coding style

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1208 from autotest/pep8-fix

PEP8 mass auto fix
Merge branch 'master' of git://github.com/autotest/virt-test into ci
virsh_start: Need to ensure stopped before run

When run after virsh.shutdown, the first virsh.start was failing with
because the domain was already started.  Adjusted the .cfg file to
ensure setting of the 'kill_vm_before_test' in the status_error_no
variant.

Also, changed the error returned from using 'stdout' to 'stderr' so that
"Domain is already active" would be displayed.
virttest.env_process: Remove restart_vm option

The restart_vm option, that will restart a vm at the beginning
of postprocessing, is unnecessary, given that you could
simply shut down all the VMs at the end of each test,
forcing new vms to be started.

So get rid of this option, and replace --restart-vm
in ./run to use kill_vm = yes instead.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>