diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-04 16:23:21 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-04 16:23:21 +0100 |
commit | 3b1a9d1f8db031563903a493be755419d7ba6620 (patch) | |
tree | 867f8787864ef9d0fe5bf0868622d954b7fcd174 /src/report-python/test_setroubleshoot_example2 | |
parent | b1439e4900cdcdd75be608f8470b505e006d2d11 (diff) | |
download | abrt-3b1a9d1f8db031563903a493be755419d7ba6620.tar.gz abrt-3b1a9d1f8db031563903a493be755419d7ba6620.tar.xz abrt-3b1a9d1f8db031563903a493be755419d7ba6620.zip |
dump_dir: make chown'ing of new files optional - needed for non-root usage
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/report-python/test_setroubleshoot_example2')
-rwxr-xr-x | src/report-python/test_setroubleshoot_example2 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/report-python/test_setroubleshoot_example2 b/src/report-python/test_setroubleshoot_example2 new file mode 100755 index 00000000..8aebcdfe --- /dev/null +++ b/src/report-python/test_setroubleshoot_example2 @@ -0,0 +1,27 @@ +#!/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_crash_data(signature, "report") + +print "rc:", rc |