autotest/autotest — pull request #506 by cevich (2012-08-08 19:21:55+00:00)
Title: Move virsh_*() functions into separate module

Created a virsh.Virsh class, useful for when multiple calls need to be made with a common url, debug, ignore_status, and/or virsh_exec options. Also supports direct calling of module functions, and all the code is shared between the Virsh class and the virsh module. Examples and some other changes are:

virsh_*() -> virsh.whatever()

or

v = virsh.Virsh(uri, debug, virsh_exec)
v.whatever()
v.whatever()
v.whatever()

if uri... -> self.uri_arg(uri)

virh_*(..., print_info) -> virsh.whatever(..., debug)

virsh_uuid() -> virsh.domuuid()

virsh_screenshot() -> Only logs error message once