QA:Testcase Anaconda traceback debug mode

From FedoraProject

Jump to: navigation, search

Description

This test case is intended to introduce a failure, and validate that anaconda is able to enter a debug mode to retrieve detailed crash information


How to test

  1. Boot the installer by any available means
    • If you're running from the Live image, you need to start anaconda from a terminal by running the command
      $ liveinst
      instead of just clicking on an icon.
  2. If you know how to make Anaconda crash, you can do so. Otherwise use Anaconda's fake exception handling trigger - switch to a different terminal and run the following command:
    kill -USR1 `cat /var/run/anaconda.pid`
    Switch back to the installer, an error prompt should be displayed after a few seconds (you might need to click on some UI element to achieve that, or hit refresh in a text mode).
  3. Enter a debug mode using the failure prompt
    • On a Live image, you need to manually switch back to the terminal which you ran liveinst from
  4. Execute some commands in the debug mode, e.g.:
    (Pdb) locals()
  5. Use continue to return back to the failure prompt:
    (Pdb) continue
    • On a Live image, you need to switch back to anaconda manually

Expected Results

  1. The installer presents a failure prompt and offers an option to enter the debug mode
  2. You are switched to a debug shell
  3. Commands are executed successfully in debug shell
  4. continue returns you back to the failure prompt and it becomes responsive again (you can press its buttons)