Add support for gluster pool in PoolVolumeTest
run: Make it bail on invalid --nettype option (Fix #1588)

Instead of happily taking invalid values of --nettype,
fail:

$ ./run -t qemu --nettype e1000
Invalid --nettype option 'e1000'. Valid options are: (bridge, user, none)

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1555 from kylazhang/gluster_pool

Add support for gluster pool in PoolVolumeTest
utils_test: Add two functions for libvirt tests

Function to check virsh commands exit status.
Function to check interface for virsh iface related tests.

Signed-off-by: Yanbing Du <ydu@redhat.com>

Conflicts:
	virttest/utils_test/libvirt.py
virttest.virsh: Add wrappers for iface related commands

Signed-off-by: Yanbing Du <ydu@redhat.com>
Typo fix

Signed-off-by: Yanbing Du <ydu@redhat.com>
documentation/source/conf.py: Import virttest module correctly

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
documentation: Add virttest API guide

Generated by sphinx-apidoc.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1606 from autotest/api-doc

Api doc
documentation: Add requirements.txt pip file

So that read the docs can fetch autotest from PyPI
when building the docs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1607 from autotest/api-doc-build-fix

documentation: Add requirements.txt pip file
remote_build: Simpler interface

Update the remote_build interface to make it figure out the default
values of lots of input parameters without being explicitly told. This
change would mean that this:

    username = params.get("username", "")
    password = params.get("password", "")
    address = vm.get_address(0)
    source_dir = data_dir.get_deps_dir("clock_getres")
    build_dir = params.get("build_dir", "/tmp")
    shell_client = params.get("shell_client", "ssh")
    file_transfer_client = params.get("file_transfer_client", "scp")
    shell_prompt = params.get("shell_prompt")
    shell_linesep = params.get("shell_linesep")
    builder = remote_build.Builder(address, source_dir, client=shell_client,
                                   file_transfer_client=file_transfer_client,
                                   username=username,
                                   password=password,
                                   build_dir=build_dir,
                                   prompt=shell_prompt,
                                   linesep=shell_linesep)

..can now be done like this, given that params is set:

    address = vm.get_address(0)
    source_dir = data_dir.get_deps_dir("clock_getres")
    builder = remote_build.Builder(params, address, source_dir)

The idea is to reduce the boiler plate needed by test case designer to
fetch all the parameters from the cartesian configuration. It also fixes
the lack of a separate file_transfer_port, which is needed by the rss
file transfer client.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
utils_test.libvirt: Enhancements to MigrationTest class.

 * Record spent time of migration.
 * Allow to pass options for migration command.
 * Cleanup remote vm by gracefully=False to avoid
   unaccessible vm session.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.load_stress: Fix typo.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Fix bugs of cross migration.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-test: Add '--qemu-dst-bin'

Add --qemu-dst-bin to allow the destination binary of a migration
to be specified separately from the source, allowing cross-version
compatibility testing.

Changes from v1:
 * Avoid setting dst binary if None passed
 * Don't try too hard to find one, as we do with qemu_bin

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Merge pull request #1605 from autotest/fix-1588

run: Make it bail on invalid --nettype option (Fix #1588)
documentation.source.index.rst: Include modules instead of virt-test directly

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

documentation.source.index.rst: Include modules instead of virt-test dir...
Merge pull request #1585 from yumingfei/enhance_migration

utils_test.libvirt: Enhancements to MigrationTest class.