QA:Testcase ABRT python addon

From FedoraProject

Revision as of 00:43, 3 November 2009 by Jlaska (Talk | contribs)

Jump to: navigation, search


Check that the abrt handles Python exceptions.

How to test

  1. First, confirm in /etc/abrt/abrt.conf that the Python addon is enabled. For example,
    EnabledPlugins = Python
  2. Next, ensure that /etc/abrt/abrt.conf has at least one reporter defined for the Python addon. For example,
    Python = Logger, Mailx
  3. Restart service
    service abrtd restart
  4. Find a python .py file in system originally installed via RPM. For this test, we will choose /usr/share/doc/smolt-1.?/ which is provided by the Package-x-generic-16.pngsmolt package. First, save a back-up of the file:
    cp /usr/share/doc/smolt-1.?/ /tmp/
  5. Now, edit the file /usr/share/doc/smolt-1.?/ to contain some invalid Python code. For example,
    "11" + 11
  6. Next, execute the modified file using python. For example, in terminal type:
    python /usr/share/doc/smolt-1.?/
  7. Revert the modified python file
    cp /tmp/ /usr/share/doc/smolt-1.?/

Expected Results

  1. Python traceback should be generated
  2. ABRT catches it, check the report via abrt-gui whether the trace in report window is the same as in terminal