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>
libvirt: fix virsh edit test.

* we can not assume the guest with 1 vcpu.
Change the pattern in sed from `1<\/vcpu>` to `[0-9]*<\/vcpu>`

* add a vcpucount function in virsh module. And use it in virsh_edit
to get the vcpucount of VM.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt: fix virsh_edit.py from pep8

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.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>
Merge pull request #710 from yangdongsheng/virsh_edit

libvirt: fix for Virsh edit test
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