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>
virttest.utils_libguestfs.py: Add function do_mount()

Mount lvm or physical partation
virttest.utils_libguestfs: Add some blockdev commands of guestfish

(1)canonical_device_name
(2)device_index
(3)disk_format
(4)disk_has_backing_file
(5)disk_virtual_size
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>
virttest.utils_params_unittest: Supress bogus pylint error

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1583 from vanbogithub/bfan-next

virttest.utils_libguestfs.py: Add function do_mount()
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>