autotest/virt-test — pull request #123 by yumingfei (2012-12-03 10:34:01+00:00)
Title: Allow virsh.define()&undefine() to raise error.

Old virsh.define()&undefine() will only return True&False.
It's not flexible if we need to test error_test.

Now it returns the result struct for more use.
That means we should catch error.CmdError out of it.