From c96bab437f21aea116bfe5608bb43c9cd26fb904 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 21 Dec 2010 19:25:05 +0100 Subject: src/report-python: add report package compatibility Signed-off-by: Denys Vlasenko --- src/report-python/test_setroubleshoot_example | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 src/report-python/test_setroubleshoot_example (limited to 'src/report-python/test_setroubleshoot_example') diff --git a/src/report-python/test_setroubleshoot_example b/src/report-python/test_setroubleshoot_example new file mode 100755 index 00000000..74428f16 --- /dev/null +++ b/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 -- cgit