From Fedora Project Wiki
(use * not ? for the path) |
No edit summary |
||
(11 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests the functionality of the | |description=This test case tests the functionality of the ABRT Python exception handler. | ||
|setup=Install will-crash | |||
|actions= | |actions= | ||
# Ensure the package is installed: {{command| | # Ensure the package is installed: {{command|sudo dnf install abrt-addon-python}} | ||
# | # Generate an uncaught python exception: {{command|will_python_raise}} | ||
# A python traceback should be generated at the command line: | |||
<pre> | |||
Will raise. | |||
Traceback (most recent call last): | |||
File "/bin/will_python_raise", line 3, in <module> | |||
0/0 | |||
ZeroDivisionError: integer division or modulo by zero | |||
</pre> | |||
|results= | |results= | ||
# ABRT should catch the traceback, and if you inspect the report via {{command|gnome-abrt}}, the trace in report window should be the same as in the terminal where you executed the command | |||
# ABRT should catch the traceback, and if you inspect the report via {{command|abrt | |||
# The ABRT plugin should not cause any unintended behaviour in python scripts when installed | # The ABRT plugin should not cause any unintended behaviour in python scripts when installed | ||
}} | }} | ||
[[Category: | [[Category:Package_abrt_test_cases]] |
Latest revision as of 11:52, 10 April 2015
Description
This test case tests the functionality of the ABRT Python exception handler.
Setup
Install will-crash
How to test
- Ensure the package is installed:
sudo dnf install abrt-addon-python
- Generate an uncaught python exception:
will_python_raise
- A python traceback should be generated at the command line:
Will raise. Traceback (most recent call last): File "/bin/will_python_raise", line 3, in <module> 0/0 ZeroDivisionError: integer division or modulo by zero
Expected Results
- ABRT should catch the traceback, and if you inspect the report via
gnome-abrt
, the trace in report window should be the same as in the terminal where you executed the command - The ABRT plugin should not cause any unintended behaviour in python scripts when installed