autotest_regression: Too few arguments for format string

Fix TypeError: not enough arguments for format string

Found by PyCharm inspection.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
autotest_regression: replace error.ValueError with ValueError

I think we mean ValueError here, I couldn't find any error.ValueError.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
autotest_regression: move copy of install-autotest-server*log outside try/except

We need the install log file to debug any error, so move it outside the
try/except, otherwise any errors will trigger aexpect.ShellCmdError and
skip the copy

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
virt.test.nic_promisc : send command safely

Some times the kernel or other subsystems might print some info,
that will interfere with aexpect following command prompts and make
this case failed like cmd timeout.
This patch tried to resolve them by creating wrappers

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.utils_net : modify the method of get_linux_ifname

This patch modify the method of get_linux_ifname
we can get the all the nic interface in the guest or
only get the nic interface with mac address we assigned.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
add images before image name

Some case will try to create images in shared/data/,
but it should be in shared/data/images/, update the
cfg file of these cases, so that it can create the
images in correct directory.

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Merge pull request #683 from rbbratta/autotest_regression_fixes

Various autotest_regression fixes
virt: Fix nic_hotplug, nic_hotunplug functions.

There was problem with send_args_cmd which broke all
commands with args
    "net_add id=xxxx,ggg=ddd" -> "net_add xxxx ddd"

Signed-off-by: Jiří Župka <jzupka@redhat.com>
qemu_disk_img: change test file path in guest

"/tmp" is mounted as tmpfs in some guest(eg, ubuntu), so if guest
reboots, files under /tmp will be deleted and qemu_disk_img fails due to
the lost file; This commit changed file path from /tmp to /var/tmp.

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest: Add basic nfs support class

This is a class used to mount nfs to your local. And it can also export local
directories for testing.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.cfg: Update kernel_install configure.

Current configure not match with code.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Make kernel_install.py works with kernelinstall

Signed-off-by: Feng Yang <fyang@redhat.com>
Add new configure for rhel guest.

Signed-off-by: Feng Yang <fyang@redhat.com>
shared.unattended: Add libblkid-devel koji to rhel6 ks file.

Signed-off-by: Feng Yang <fyang@redhat.com>
shard.deps: Sync shared/deps/boottool.py with autotest.client.tools.boottool.py

Add SuseBuildDeps class support.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests : Add script for multiple nics stress test

This patch add script for multiple nics stress test, both support linux
and windows

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #687 from humanux/nic_promisc

virt.test.nic_promisc : send command safely
Merge pull request #686 from humanux/utils_net

 virttest.utils_net : modify the method of get_linux_ifname
unattended_install.cfg: Add previously hidden image_copy_on_error param

The param image_copy_on_error tells virt-test that
when an unattended install fails, copy an already
installed guest image from a NFS mount. However,
not all test grids will have such a NFS mount configured,
so just assuming by default that such a mount is configured
is wrong.

This param was introduced on a previous commit, and it
is not available anywhere in the default config files.
Add it and set it by default to "no".

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Move image_copy test to virttest.utils_test

The namespace autotest.virt.tests is not available
when running virt-tests from outside autotest. So
move image_copy to utils_test, and use it from there.

This commit moves the code to the right places and
changes the imports accordingly.

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