From dba326f60e159697a740f08959d098e19c200453 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 22 Dec 2010 16:28:39 +0100 Subject: extend run_event() to run_event_on_dir_name() and run_event_on_crash_data() Signed-off-by: Denys Vlasenko --- src/report-python/test_full2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 src/report-python/test_full2 (limited to 'src/report-python/test_full2') diff --git a/src/report-python/test_full2 b/src/report-python/test_full2 new file mode 100755 index 00000000..734946eb --- /dev/null +++ b/src/report-python/test_full2 @@ -0,0 +1,17 @@ +#!/usr/bin/python + +import sys +from report import * + +def log_function(line): + print "LOG:", line + +cd = crash_data() +cd.add("foo", "bar") +cd.add("analyzer", "baz", CD_FLAG_ISNOTEDITABLE) + +st = run_event_state() +st.logging_callback = log_function +r = st.run_event_on_crash_data(cd, "post-create") + +print "Result:", r -- cgit