summaryrefslogtreecommitdiffstats
path: root/src/report-python/test_setroubleshoot_example2
diff options
context:
space:
mode:
Diffstat (limited to 'src/report-python/test_setroubleshoot_example2')
-rwxr-xr-xsrc/report-python/test_setroubleshoot_example227
1 files changed, 0 insertions, 27 deletions
diff --git a/src/report-python/test_setroubleshoot_example2 b/src/report-python/test_setroubleshoot_example2
deleted file mode 100755
index b712cda7..00000000
--- a/src/report-python/test_setroubleshoot_example2
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/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")
-
-# Won't send log anywhere:
-#rc = report.report(signature, report.io.GTKIO.GTKIO(accounts))
-
-# report.report() + logging:
-def logging_callback(line):
- print "LOG:", line
- return
-state = report.run_event_state()
-state.logging_callback = logging_callback
-rc = state.run_event_on_problem_data(signature, "report")
-
-print "rc:", rc