On 03/14/2013 10:32 PM, liyang wrote:
On 2013-3-9 3:45, Chris Evich wrote:
> ...
if session:
ret = session.cmd_result(cmd, ignore_status)
else:
ret = utils.run(cmd, verbose=debug, ignore_status=ignore_status)
I didn't pass any "session_id" in virsh.net_dumpxml(vm_ref, extra,
ignore_status=True),
so the ret which command() function returns will be utils.run()
function's result, and
it contains stdout and stderr..Is that right?
Again, I may be mistaken, however I believe the issue here is the
'virsh' command's behavior, not necessarily how we execute it. I
*think* virsh only ever writes to stdout, and never (or at least very
rarely) to stderr. Good to double-check though, I may be remembering wrong.
--
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214
_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel