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>
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
qemu.tests: update test script according test case

updated test script since case steps changed;

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.test: remove useless file

remove useless script block_stream_with_stress, since
block_stream_stress in used by block_stream.with_stress tests;

Signed-off-by: Xu Tian <xutian@redhat.com>
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>
unattended_install: Fix message wording

The messages assume images will be copied from an
NFS mount in case of unattended install failure,
when said mount may not even exist. Let's fix the
message and notify the image copy only if the grid
owners actually configured it to do so.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils_disk: Fix python 2.4 incompatible construct

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
CPUID dump-extraction scripts

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>