diff options
author | Karel Klic <kklic@redhat.com> | 2011-06-13 16:46:42 +0200 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2011-06-13 16:46:42 +0200 |
commit | 8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3 (patch) | |
tree | b747ef4d0e24ad4cf2980f0681a93408011dbcd6 /libreport/src/report-python/test_full | |
parent | 6dcdb4a5cb3ed68eb7d72cc65e58055d1e4f7c65 (diff) | |
parent | 16f9e8da051b87164b77bf9a42a61ae9a97fb5fd (diff) | |
download | abrt-8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3.tar.gz abrt-8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3.tar.xz abrt-8edc80c6a08ef30d02cad35b736c0c7dcb62a7f3.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'libreport/src/report-python/test_full')
-rwxr-xr-x | libreport/src/report-python/test_full | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libreport/src/report-python/test_full b/libreport/src/report-python/test_full deleted file mode 100755 index 107c4857..00000000 --- a/libreport/src/report-python/test_full +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python - -import sys -from report import * - -def run_event_on_problem_data(cd, event, log_function = None): - dd = cd.create_dump_dir("/tmp") - dir_name = dd.name - print "Created dump_dir:", dir_name - dd.close() - run_state = run_event_state() - if log_function: # maybe if callable(log_function)? - run_state.logging_callback = log_function - print "Running event:", event - r = run_state.run_event_on_dir_name(dir_name, event) - print "Deleting:", dir_name - delete_dump_dir(dir_name) - return r; - -def log_function(line): - print "LOG:", line - -cd = problem_data() -cd.add("foo", "bar") -cd.add("analyzer", "baz", CD_FLAG_ISNOTEDITABLE) -r = run_event_on_problem_data(cd, "post-create", log_function) -print "Result:", r |