mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
tests: Fix domain-events python test
There was a missing method in python implementation of domain-events test and this patch adds that.
This commit is contained in:
parent
819c8ce043
commit
60f96bfc88
@ -492,6 +492,9 @@ def myDomainEventPMSuspendCallback(conn, dom, reason, opaque):
|
|||||||
dom.name(), dom.ID())
|
dom.name(), dom.ID())
|
||||||
def myDomainEventBalloonChangeCallback(conn, dom, utcoffset, actual):
|
def myDomainEventBalloonChangeCallback(conn, dom, utcoffset, actual):
|
||||||
print "myDomainEventBalloonChangeCallback: Domain %s(%s) %d" % (dom.name(), dom.ID(), actual)
|
print "myDomainEventBalloonChangeCallback: Domain %s(%s) %d" % (dom.name(), dom.ID(), actual)
|
||||||
|
def myDomainEventPMSuspendDiskCallback(conn, dom, reason, opaque):
|
||||||
|
print "myDomainEventPMSuspendDiskCallback: Domain %s(%s) system pmsuspend_disk" % (
|
||||||
|
dom.name(), dom.ID())
|
||||||
def usage(out=sys.stderr):
|
def usage(out=sys.stderr):
|
||||||
print >>out, "usage: "+os.path.basename(sys.argv[0])+" [-hdl] [uri]"
|
print >>out, "usage: "+os.path.basename(sys.argv[0])+" [-hdl] [uri]"
|
||||||
print >>out, " uri will default to qemu:///system"
|
print >>out, " uri will default to qemu:///system"
|
||||||
|
Loading…
Reference in New Issue
Block a user