diff options
Diffstat (limited to 'libreport/src/report-python/test_setroubleshoot_example')
-rwxr-xr-x | libreport/src/report-python/test_setroubleshoot_example | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libreport/src/report-python/test_setroubleshoot_example b/libreport/src/report-python/test_setroubleshoot_example new file mode 100755 index 00000000..74428f16 --- /dev/null +++ b/libreport/src/report-python/test_setroubleshoot_example @@ -0,0 +1,18 @@ +#!/usr/bin/python + +import report +import report.io +import report.io.GTKIO +import report.accountmanager + +accounts = report.accountmanager.AccountManager() + +signature = report.createAlertSignature("selinux-policy", + "setroubleshoot", + "self.siginfo.get_hash()", + "self.summary", + "content") + +rc = report.report(signature, report.io.GTKIO.GTKIO(accounts)) + +print "rc:", rc |