summaryrefslogtreecommitdiffstats
path: root/libreport/src/report-python/test_setroubleshoot_example
diff options
context:
space:
mode:
Diffstat (limited to 'libreport/src/report-python/test_setroubleshoot_example')
-rwxr-xr-xlibreport/src/report-python/test_setroubleshoot_example18
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