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>
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>
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.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
virttest: Update qemu_io to use get_qemu_io_binary to get qemu_io_cmd

Use get_qemu_io_binary provide by utils_misc in qemu_io to ignore some
structure change problem from now on.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #1642 from ypu/qemu_io

virttest: Update qemu_io to use get_qemu_io_binary to get qemu_io_cmd
virttest: PEP8 Mass fix - part 1

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt-test: Fix PEP8 E714 errors

Tests for identity should take the form `is not None` rather
than `not is None`.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Mass Fix for PEP8 E112

Signed-off-by: Lucas Meneghel Rodrigues
virttest: Mass PEP8 fix for E713

E713: test for membership should be 'not in'

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Introduce PEP8 Checks

Let's start to complain on PEP8 violations. This is going
to be fun.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest: Mass fix PEP8 E128 errors

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

Travis PEP8
Merge pull request #1640 from autotest/use-newer-autotest-api

virttest.defaults: Use autotest new distro API
documentation.api: Remove rst files for auto generation

Rather than having to manually update that directory, we
will auto generate the API documentation skeleton upon
every build.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
documentation/source/conf.py: Add auto build of virt test API docs

Instead of manually updating the API rst files upon
new module additions, auto generate the .rst files
through a trick on conf.py.

With this we have reduced maintenance and always
up to date API docs.

The virt-test implementation has to be simpler than
other projects because we don't have autotest installed
in the read the doc boxes.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.env_process: Docstring fix

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