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>
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>
documentation/source/conf.py: Optionally use the read the docs theme

If available, use the read the docs theme to build
the documentation.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
documentation/source/conf.py: Update version and copyright info

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

Sphinx API doc auto generation
tools: Remove reindent.py

As it's been superseded by inspekt, that has a good
deal of its code.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tools: Add build_docs.py script

Build documentation and report failures if necessary.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Add build_docs step to CI testing

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