Hi Chris,Lucas:
In the patch set I delete the "remote" case...When the VirshConnectBack
class is
finished, I will add this test case.
BTW..Chris said "IIRC, virsh never uses stderr, always stdout."
But I found that the function in virsh.py can get stderr..
The command() function returns a CmdResult object which can get
"exit_status, stdout, stderr".
And I also print the stderr in error_test case, for example:
virsh_suspend.error_test.shutdown_option
The test result is that stdout has no detail, but stderr has some:
error: Failed to suspend domain vm1
error: Requested operation is not valid: domain is not running.
Li Yang (2):
virt-libvirt: add configuration for virsh suspend
virt-libvirt: add test module for virsh suspend
libvirt/tests/cfg/virsh_suspend.cfg | 37 +++++++++++++++++++++++++
libvirt/tests/virsh_suspend.py | 50
+++++++++++++++++++++++++++++++++++
2 files changed, 87 insertions(+), 0 deletions(-)
create mode 100644 libvirt/tests/cfg/virsh_suspend.cfg
create mode 100644 libvirt/tests/virsh_suspend.py
--
Regards,
--------------------------------------------------
Li Yang
TEL:+86+25-86630566-8526
EMail:[email protected]
--------------------------------------------------
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel