libvirt-virsh: Add remote_pwd into VirshPersistent.__slots__.

If 'remote_pwd' is not in __slots__, we can not pass a remote_pwd
into VirshConnectBack and VirshPersistent, so that we can not connect
to a remote host with password. Same reason to 'remote_user'.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml.pool_xml: Fix PoolXMLBase class.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh: Add readonly param in __init__ of VirshSession.

As there is no param about readonly for VirshSession, then we
can not create a readonly Virsh session. This patch add a param
in __init__ of VirshSession class and pass readonly in new_session()
of VirshPersistent. Then we can create a readonly VirshSession and
a readonly VirshPersistent.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt: Add 'debug' paramter to print result in VirshSession.cmd_result()

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.utils_test: Correct tests script dir for shared script in run_virt_sub_test()

Now we move all the shared test scripts to generic/tests/

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.libvirt_xml: Add attributes to Video class

Add attributes to Video class to support video device operation.

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

The screenshot function is used by screendump in VM class, which
lack screen option and will raise error and fail test in negative
test.

Add the screenshot_test function which return CmdResult for test
the screenshot command in libvirt test provider.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.standalone_test: Disable default behavior when using -c

Due to a mistake on my part, I disregarded the option -c
when writing the new behavior of the test suite. Let's
disable all backing up of images, download of JeOS and
the such when using -c.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.standalone_test: If -c used, tags are shortnames

When using -c, all bets about how the suite is used are
off, as for the number of guests used and other details.

So, to avoid name collisions, ensure the test tag in case
we're using our own configuration is equal to the shortname,
not the special, trimmed down tag we use when not using -c.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Revert "Unify Windows unattended files"

We got reports of Win 2008r2 not able to install after
this commit, so let's revert it.

This reverts commit df91845c97bb8ee8cacdec4aacdcbc24c9932a0c.
Merge pull request #1423 from autotest/fix-config-option

Fix config option
make "latest" a relative symlink

This helps me because I have the virt-test checkout on NFS, and the
exact path may be different on different systems.  By using a relative
symlink, I can access the "latest" log from all of them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Merge pull request #1362 from yangdongsheng/VirshConnectBack

libvirt-virsh: Add remote_pwd into VirshConnectBack.__slots__.
virttest.utils_net: Add some methods to manage guest nic's ip

This patch add a new method to get guest nic ip, support both
windows and linux guest, also add a method to renew guest ip
support both windows and linux guest.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.virt_vm: some modifications of wait_for_get_address()

This patch modified the method of wait_for_get_address, the new method
will try to renew guest nic ip, and try to get guest ip by serial console,
instead of raising error when timeout. will raise error if both above
try failed.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.virt_vm: using wait_for_get_address to get guest address

We suffer a lot when autotest can't log into guest, but the guest actually
have an effect ip.
Using wait_for_get_address, will try to renew guest ip and get guest ip by
serial console when it can not guest get guest address by address_cache.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #1424 from autotest/1393

Remake of PR 1393
Merge pull request #1390 from yumingfei/fix_pool_xml

libvirt_xml.pool_xml: Fix PoolXMLBase class.
Merge pull request #1391 from yangdongsheng/readonly

virsh: Add readonly param in __init__ of VirshSession.
Merge pull request #1399 from FengYang/run_virt_sub_test

virttest.utils_test: Correct tests script dir for shared script in run_v...