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>
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>
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.
Merge pull request #1587 from will-Do/iface

Add iface related commands wrappers and libvirt common test functions
requirements.txt: Cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tools: Remove check_patch and other auxiliary scripts

As they've been replaced by inspekt.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.staging.backports.simplejson: Supress E0111 message

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

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

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

Mass docstring and .rst documentation fixes
Merge pull request #1604 from autotest/dgilbert

virt-test: Add '--qemu-dst-bin'