virsh.undefine: adapt undefine to lxc test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.dumpxml: adapt virsh.dumpxml to lxc test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.edit: adapt virsh.edit to lxc test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.start: adjust virsh.start to lxc.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh.snapshot_disk: Raise NAError when we get a message about "not supported".

When we run test for virsh.snapshot_disk in RHEL6:
Compiled against library: libvirt 0.10.2
Using library: libvirt 0.10.2
Using API: QEMU 0.10.2
Running hypervisor: QEMU 0.12.1

We will get some FAILs and error message:
"live disk snapshot not supported with this QEMU binary"

In this case, we should raise an NAError rather than FailError.

We are testing libvirt in tp-libvirt, and libvirt works well in
this case, but qemu-kvm.0.12.1 does not support live snapshot. It
is out of our testing project, and it should be NAError.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.test: Modify add_ssl_spice_graphic func to add_graphic

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix hidden bug in domdisplay test

Befor test, check if domain has graphic device, if
no graphic device exists, add one device.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
.travis.yml: Fix PPA URL location

Fix the broken Travis build to point the PPA location
to the correct new trusty distribution.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #249 from autotest/fix-travis

.travis.yml: Fix PPA URL location
libvirt.test: Fix a typo for vcpucount test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt.test: Fix hidden failure in test

If domain doesn't have a vnc graphic device, all the
normal tests will be fail. Now before execute vncdisplay
command, test will check if vnc graphic device exists,
if not, test will add a vnc graphic device to domain.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #248 from liyangfnst/vcpucount

libvirt.test: Fix a typo in vcpucount test
Add tests for virt-clone command.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Add test for virt-what command.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #229 from yangdongsheng/live_snapshot

virsh.snapshot_disk: Raise NAError when we get a message about "not supp...
Merge pull request #231 from liyangfnst/vncdisplay

libvirt.test: Fix hidden failure in test
svirt_clone: remove vm and storages in cleanup step.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt.test: Fix a bug in vncdisplay test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #251 from liyangfnst/vncdisplay_fix

libvirt.test: Fix a bug in vncdisplay test
Merge pull request #250 from yangdongsheng/svirt_clone

svirt_clone: remove vm and storages in cleanup step.