virttest.qemu_devices: Lose verbose=False incompatible with at 0.14

This is an attempt to better fix the issue where system_output
doesn't have the verbose parameter in autotest 0.14. It is better
and less desruptive to simply lose the parameter, and we can
get it back once 0.15 rpms are available on Fedora.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Rename virttest/nfs_unnittest.py to virttest/nfs_unittest.py

Because virttest/nfs_unnittest.py is end with _unnittest.py, not
_unittest.py, tool/run_unittest.py cannot find this module.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.virsh: Fix error of referenced before defined.

a += b equals to a = a + b.
So for self.virsh_exec += " -c xxx" in VirshSession.
It will cause problem of referenced before defined.
Now define self.virsh_exec before this line.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #813 from liyangfnst/nfs_unittest

virt: Rename virttest/nfs_unnittest.py to virttest/nfs_unittest.py
virt: Improve runtime of utils_net unittest

Reduced the internal Cartesian variant set while retaining
testing of key values.  The result is much faster unit-testing
while loosing very little in depth.

Signed-off-by: Chris Evich <cevich@redhat.com>
virttest.qemu_devices: Workaround for RHEL5

RHEL5 doesn't support both 'aio' and 'id' for drive
files. So check whether such options are supported
and don't add them in case they are not.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge branch 'next' - Virt Test 2013.09.03
libvirt-tests: fix virsh_vcpuinfo test, mv shutoff_option test from error_test to normal test.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt-tests: virsh_vcpuinfo, add more debug message.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
utils_libvirtd_unittest: remove skipIf to avoid incompatible issue for python2.6

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
tests.cfg: Set up the lowest_mem for unattended_install

As we try to shrink memory size when host don't have enough huge pages.
unattended_install may fail because guest don't have enough RAM in Linux guests
when we start guest with huge pages. This is caused by anaconda memory size
check. For newest RHEL and fedora the lowest memory size is 512M. So set up the
it to 512M in cfg file.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt: Remove vcpucount_live() and fix vcpucount() in virsh.py

1. Remove vcpucount_live() and modify virsh vcpupin test file
2. Remove a unused parameter 'vcpu' in virsh vcpupin test file
   which was found by run_pylint.py
3. Add return value for vcpucount()

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #823 from ypu/low

 tests.cfg: Set up the lowest_mem for unattended_install
boottool/version: Fix __all__ dictionary

A newer pylint version caught a problem in the __all__
dictionary for these 2 files, fix it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #814 from yumingfei/fix_virsh_module

virttest.virsh: Fix error of referenced before defined.
Add a method named sub_else_add in RemoteFile class.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add utils_conn module in virttest.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add test for virsh connect.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
utils_conn: add more comments and make tmp_dir unique.

* Remove tmp_dir from param of __init__, and build tmp_dir
  using tempfile to assure it unique for each instance.
* Add more comment for the varaibles of connection class to
  make it more clear.
* Pick the CA key build method out from TLSConnection as a
  function in utils_conn.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
utils_conn: Add more unittest for utils_conn.

* Add a unittest for tmp_dir to make sure it is unique for
  each instance.
* Add three unittests for functions in utils_conn which build
  CA key.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>