utils_test.libvirt: Fix pre_pool for iscsi_get_sessions.

 * Let iscsi.get_iscsi_sessions return tuple of target and address
 * Before cleanup of pool in PoolVolumeTest, we should check
   whether pool exists.
 * As iscsi.iscsi_get_sessions returns ip_addr and port,
   we should remove port for pool-operations.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Signed-off-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Yanbing Du <ydu@redhat.com>
Add support for gluster pool in PoolVolumeTest
qemu_vm: Add monotonic start time

For tests that would like to fetch the monotonic start time, expose it
through the start_monotonic_time member.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
virt-test: Add sphinx documentation

After some work with the virt-test wiki, it has been
converted to the sphinx format. Although many of the
rough edges and outdated docs were put into shape,
there's still a lot to be done. It's good to have
it out there and integrated early, where we can
work on it.

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

virt-test: Add sphinx documentation
Add travis CI jobs

Make it possible to run the virttest unittests under travis.

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

The conf script generated by sphinx-quickstart has its
quirks, so let's fix them.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Install autotest before running virttest unittests

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

Travis
travis: Runner and travis.yml fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
travis.yml: Specify which module is going to be tested

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: More updates

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Update install commands

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Use system site packages

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest: Fix NumaNode unittesting

The NumaNode unittest was directly accessing system
files, making it fail on Travis CI jobs. Let's fix
that by adding some extra params to the NumaNode API,
that allow to replace the system locations and execute
our tests.

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

.travis.yml: Update install commands
tools/run_unittests_nose: Remove hardcoded blacklist

And use the script options to remove tests from the
execution.

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

tools/run_unittests_nose: Remove hardcoded blacklist
virttest.utils_net_unittest: Unstub stubbed functions

They were interfering with the tests that followed.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.virsh_unittest: Fix weakref

For some reason, providing an actual dict as a dictlike
reference for Virsh doesn't work. Let's use a little
trick to provide a valid one.

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