virttest: Add queues and helper to add_net in qemu_vm.py

Make the add_net support queues and helper options.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Make add_net can support invalid paramteres

Make it possible to start the command with invalid parameters to
support some negative tests.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Make the info register warning shorter in log files

Only record the fist and last message for the failed of getting
register info from guest.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Add vm process status for image process functions

Let the image check process can get if vm process is still running. Some
options in image like lazy_refcounts improve the performance but do not
support image check while the qemu process still running. Also make this
can be control by cfg file.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest: Add a parameter to skip cluster leak warning in image check

When the guest is running we should not raise error in image check if
it is only a cluster leak warning. And add it as a parameter in base.cfg
so people can igonre the warning message if they do not care about it in
their tests.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt: Add a function to remove domain agent channel

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.utils_libguestfs: Enhancements of virt_edit interface.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-test: Bootstrap using other OS images.

The bootstrap procedure was hardcoded to use the JeOS image. If the
JeOS repository is unreachable the command will return an error. To use
a specific OS at bootstrap its name should be given in the run command
using the --guest-os parameter:
e.g. ./run -t qemu --bootstrap --guest-os=Enea.4.0.x86_64

Signed-off-by: Petre Pircalabu <petre.pircalabu@enea.com>
virt-test: virttest/standalone_test.py pep8 fixes

Signed-off-by: Petre Pircalabu <petre.pircalabu@enea.com>
virt-test: Use import defaults

Change 'from defaults use' with 'import defaults'

Signed-off-by: Petre Pircalabu <petre.pircalabu@enea.com>
virt-test: Download multiple assets on bootstrap

If the guest-os parameter matches multiple guest, the bootstrap script
should download all matching images.

Signed-off-by: Petre Pircalabu <petre.pircalabu@enea.com>
virttest: Extract output between last two prompts in virsh session

In virsh_net_start case, occasionally net_state_dict can't find
default network in net-list command output from virsh session. The
cause is list command output is mixed into net-list command output
of unknown reason.

For solving the problem, make output of virsh session command only
contains content start from the second prompt if the second prompt
is found in output reversed list.

Override the read_until_output_matches function in Expect within
VirshSession to limit the change to only affect the virsh session.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest: fix syntax in run_autotest()

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

virttest: fix syntax in run_autotest()
Merge pull request #1624 from pepi-enea/parameterized_bootstrap

Parameterized bootstrap
Merge pull request #1573 from ypu/image_check

Some image check improve for env_process
Merge pull request #1577 from ypu/qemu_params

Add some params to add_net
virttest.defaults: Use autotest new distro API

Now that we have autotest 0.16 in EPEL, we can safely
use autotest.client.shared.distro. This means no more
horrible hacks have to be used to determine the appropriate
guest OS to use.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1590 from ypu/info_regitser

virttest: Make the info register warning shorter in log files
Merge pull request #1608 from liyangfnst/agent

virt: Add a function to remove domain agent channel