modify for gluster pool and volume test
virsh_iface: Add acl test cases for virInterfacePtr group apis

Add acl test cases for 'write', 'save', 'start', 'stop' and 'delete'
in virInterfacePtr group.

Signed-off-by: Wayne Sun <gsun@redhat.com>
iface: Add acl case for iface list and dumpxml command

iface list and dumpxml command works by default with no permission
restriction, the commit add test for grant none to test both
command works as expected.

Signed-off-by: Wayne Sun <gsun@redhat.com>
pool_acl: add test cases for storage-pool api 'read' and 'getattr'

By default, access for storage-pool api 'read' and 'getattr' is
granted for unprivileged user, add test cases for this via pool list
and dumpxml command.

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh.dump: Cover --format option

Signed-off-by: Yanbing Du <ydu@redhat.com>
nodedev_list: add acl test cases for node-device api 'getattr'

By default, access for node-device api 'getattr' is granted
for unprivileged user, add test cases for this via nodedev-list
command, and nodedev-list command also check connect api
'search-node-devices'.

Signed-off-by: Wayne Sun <gsun@redhat.com>
nodedev_list: fix the --cap net testing problem

When host with bond devices under /sys/class/net, the bond device
master is not show in nodedev-list result, but only the slave
device, ignore bonding master in check.

Signed-off-by: Wayne Sun <gsun@redhat.com>
nodedev_dumpxml: add acl test cases for node-device api 'read'

By default, access for node-device api 'read' is denied for
unprivileged user, add test cases for cover this via
nodedev-dumpxml command.

Signed-off-by: Wayne Sun <gsun@redhat.com>
Use more flexible method to check added partitions

Modify check_in_vm function.
Case update and bug fix

1. Move test steps into try..finally block, so the env can restore in
any reason fail.
2. When crash guest via session command, it may raise 2 type Exceptions,
so catch them all to pass this step.
3. If the guest started with X window, the old grep keyword can not find
the tty1 process, so just use 'tty1' keyword for the checking.

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #327 from will-Do/guest_ker_deb_fix

Catch all Exceptions if guest crashed and fix command for tty1 process c...
Merge pull request #307 from kylazhang/gluster_pool

modify for gluster pool and volume test
Merge pull request #339 from waynesun09/acl_pool_misc

pool_acl: add test cases for storage-pool api 'read' and 'getattr'
Merge pull request #340 from will-Do/dump

virsh.dump: Cover --format option
Merge pull request #341 from waynesun09/acl_nodedev_misc

Add acl test cases for node-device api 'read' and 'getattr'
Merge pull request #348 from rbian/disk-iscsi

Use more flexible method to check added partitions, modify check_in_vm f...
libvirt.tests: delete one of two calls for libvirt.check_iface

It's unreasonable that libvirt.check_iface is called two times.
Merge pull request #352 from PandaWei/iface

libvirt.tests: delete one of two calls for libvirt.check_iface
Add try/except for os_dep.command failure

The function os_dep.command() should be surrounded by try/except.
Merge pull request #356 from PandaWei/virt-cmd

Add try/except for os_dep.command failure