templates: Add template difficulty and some comments

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
templates: Add couple of templates

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
tools.check_patch: Use working dir for project checking

Search LICENSE file from the current working dir instead of the
../check_patch.py file directory, which makes it possible to use
one script to check any autotest-like project.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.utils_misc: Add KSMController class.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt_vm: set_console_getty() check for systemd

In RHEL7 (and at as of at least f18), the output for /etc/inittab has
changed, thus the existing search doesn't work resulting in the unnecessary
modification of /etc/inittab on the guest.
MAINTAINER: Fix the description of LVSB sub testset.

It seems a error from copy-paste, the description of LVSB sub tests
is "Libvirt subtests".

This patch change it to "LVSB subtests".

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
destroy_pool: Fix return value

The virsh_instance.pool_destroy method returns a boolean, so
adjust destroy_pool to just return that rather than checking
cmd_result.exit_status inside a try/except which is already
done in the called method
virttest.libvirt_xml: Add sysinfo xml handler

Add sysinfo_xml module to handle sysinfo xml operation.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.virsh: Add virsh sysinfo command function

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.virsh: Add blockresize() API

Add new API to support the libvirt test
virsh_blockresize

Signed-off-by: Guannan Ren <gren@redhat.com>
Fix parameters for LibvirtXMLError calls

Initially seen in vm_xml/sync() - the raising of the exception passed
3 paramters instead of the __init__ required 2:

   File "/home/virt-test/virttest/libvirt_xml/vm_xml.py", line 376, in sync
     raise xcepts.LibvirtXMLError("Failed to undefine %s.", self.vm_name)
 TypeError: __init__() takes at most 2 arguments (3 given)

Since I was fixing this one - I looked for others. Found the pool_xml/
pool_rename() condition as well, so I modified it too.
Merge pull request #1430 from ldoktor/framework2

templates: Add coule of templates
Merge pull request #1431 from yumingfei/ksm

[missed patch] virttest.utils_misc: Add KSMController class.
Merge pull request #1433 from waynesun09/virsh_sysinfo

virttest: Add sysinfo xml handler and virsh sysinfo command function
Merge pull request #1434 from jferlan/console_inittab

libvirt_vm: set_console_getty() check for systemd
Merge pull request #1435 from jferlan/destroy_pool

destroy_pool: Fix return value
Merge pull request #1438 from yangdongsheng/MAINTAINER

MAINTAINER: Fix the description of LVSB sub testset.
virt: Fix bug in removing of remote_sessions.

It is not possible remove items from list which is
iterated in one cycle.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virttest.standalone_test: Close file handler at the end of test

Free up resources at the end of each test, as we should
have done anyway.

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

virttest.standalone_test: Close file handler at the end of test