virttest.utils_misc: Convert host_setup_flag into int

If host_setup_flag is set up in cfg files. Convert it to int in this
step. This can ignore the type error when use it for bit check.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.libvirt_storage_unittest: remove ModuleLoadCheckVirsh class.

Since we initialize a bogus_virsh in setup to provide a fake virsh for unittest,
then there is no need to skip if virsh command is not available.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #833 from yangdongsheng/libvirt_storage_unittest

virttest.libvirt_storage_unittest: remove ModuleLoadCheckVirsh class.
virt-libvirt: Error message enhancement

It's possible to install libvirt bits w/o installing kvm or xen.  This
will be reflected in 'virsh capabilities' output, but the VM class just
reports a key error.  Added two specific error logging messages to make
the problem clearer, but continue to raise the original exception.

Signed-off-by: Chris Evich <cevich@redhat.com>
tool-pep8: update the comment in run_pep8 module.

Options of run_pep8 tool is changed, then the description
should be updated at the same time.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Mass docstring fix

Make virt-test to have a docstring style mostly compliant with
the sphinx's [1] format, reStructured text. This means that
we have to trade all '@' tags to be ':', mostly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tools/run_pep8: Add own logging config class

This way we can keep those scripts in sync among
virt-test and autotest.

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

This file is also borrowed from autotest, and already
reflects the updates to the coding style of the projects
under the autotest umbrella.

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

Fix some extra problems with docstrings in the code tree.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #832 from ypu/host_setup_flag

virttest.utils_misc: Convert host_setup_flag into int
Add virsh desc testing, include virsh cmd update, new test and new config

This case include following parts:
1). For running domain, get/set description&title with options.
2). For shut off domian, get/set description&title with options.
3). For persistent/transient domain, get/set description&title with options.
4). Several negative test

Signed-off-by: Yanbing Du <ydu@redhat.com>
Fix several problems in PR#786

1). virsh.desc function lose a parameter to set 'desc message'
2). Use vm.is_dead/alive() instead vm.state(), which make the code more clear
3). Fix the repeat params get of "main_vm"

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

Remove the virt_test_type in cfg file and redundant blank line

 * The 'virt_test_type' no longer need in config file
 * There's an redundant blank line, so remove it

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

Remove the git conflict HEAD line

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