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>
tools.check_patch: Allow to set AUTOTEST_PATH

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #1432 from ldoktor/framework3

tools.check_patch: Allow to set AUTOTEST_PATH
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.
virt: Add ntpdate and get_date function to set and get date time

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
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
Merge pull request #1436 from liyangfnst/time

virt: Add ntpdate and get_date function to set and get date time
Apply hmp/qmp filters only if -c is not passed in the command line

It seems I keep forgetting -c. Sorry about that, this
patch fixes the problem.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Revert "Apply hmp/qmp filters only if -c is not passed in the command line"

This reverts commit 3d40d9c3bd5f9960715a0051c42e8833fd93315a.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Revert "run: Don't overwrite monitors when using --monitor"

This reverts commit 5637ed15b59395ceeeb657fbb61f6308d64492e8.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.libguestfs: Unified virt-command functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_libguestfs: Add virt command function.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libguestfs: Add functions for formatting disk.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libguestfs: Add inspective functions for VT class.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virttest.utils_test: make ping support ipv6

This patch make ping support ipv6

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
wait_for_get_address: Handle dead vm

Pull request #1424 added logic to wait_for_get_address() in order to
try and renew the guest IP by using the serial console. However, it did
not take into account that the guest may not be running in this instance
and that failing and/or raising an exception may be an expected output.

As it turns out the virsh.attach_device test has such a need as part of
its processing - it expects/tests certain exceptions.

Without this change, the wait_for_get_address() eventually calls the
serial_login() function which fails (exception) when trying to determine
if the path to 'self.serial_console.inpipe_filename' exists. Trying
to change that code to call create_serial_console() will fail because
the VM is dead.  So rather than go through that processing, just fail.

This issue was exacerbated by verify_ip_address_ownership() not returning
True from the mac in macs checking on the return from parse_arp(). Since
the IP address wasn't matched a failure would result, which led to going
into the new code. Exactly what caused that I'm not quite sure as it
was only reproducible for a short period of time and now it does find
the address. When the code does return True, the remote.remote_login()
call in the login() code will eventually fail since the guest is not
up with a LoginError exception, which is caught/handled by attach_device.

Hopefully @humanux can review and comment on this.  I am open to other
suggestions, but this just seemed to be the easiest way.
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>