提交 2576f178 编写于 作者: G Giuseppe Scrivano 提交者: Eric Blake

examples: support crash events in event-test.py

commit 14e7e0ae adds the support for
crash events.

Solves: https://bugzilla.redhat.com/show_bug.cgi?id=994317Signed-off-by: NGiuseppe Scrivano <gscrivan@redhat.com>
上级 6ebdf35c
......@@ -437,7 +437,8 @@ def eventToString(event):
"Resumed",
"Stopped",
"Shutdown",
"PMSuspended" )
"PMSuspended",
"Crashed" )
return eventStrings[event]
def detailToString(event, detail):
......@@ -449,7 +450,8 @@ def detailToString(event, detail):
( "Unpaused", "Migrated", "Snapshot" ),
( "Shutdown", "Destroyed", "Crashed", "Migrated", "Saved", "Failed", "Snapshot"),
( "Finished", ),
( "Memory", "Disk" )
( "Memory", "Disk" ),
( "Panicked", )
)
return eventStrings[event][detail]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册