Apport should prompt when failing a test during development

Bug #959463 reported by Marc Tardif on 2012-03-19
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Checkbox
High
Marc Tardif

Bug Description

When failing a test on Precise, there is no apport prompt that appears. Instead, this trace appears on the log:

2012-03-19 12:02:52,723 ERROR Error running event handler ../../checkbox/trunk/plugins/apport_prompt.py ApportPrompt.prompt_test(<checkbox_gtk.gtk_interface.GTKInterface object at 0x1fcf590>, {'status': 'fail', 'data': '', 'description': u"1. Open Dash, input 'Nautilus' and select 'Home folder'\n -> Nautilus is opened, Home Folder is selected\n2. In Home Folder right click on a blank section and select Create Document, Empty Document. Name the resulting file moveme.txt.\n -> Empty document moveme.txt is created", 'plugin': 'manual', 'suite': '__nautilus__', 'type': 'test', 'requires': ["package.name == 'nautilus'"], 'resources': [{'status': 'Installed', 'desired': 'Install', 'version': '1:3.3.91-0ubuntu4', 'name': 'nautilus', 'description': 'file manager and graphical shell for GNOME'}], 'name': 'nautilus/TC-NFM-001'}) for event type 'prompt-test'
Traceback (most recent call last):
  File "/home/dev/src/checkbox/trunk/checkbox/reactor.py", line 74, in fire
    results.append(handler(*args, **kwargs))
  File "../../checkbox/trunk/plugins/apport_prompt.py", line 229, in prompt_test
    'suite:' : test["suite"]}
KeyError: 'suite'

Related branches

Marc Tardif (cr3) wrote :

After fixing the reference to test["suite"], this trace then appears in the log:

Traceback (most recent call last):
  File "/home/dev/src/checkbox/trunk/checkbox/reactor.py", line 74, in fire
    results.append(handler(*args, **kwargs))
  File "../../checkbox/trunk/plugins/apport_prompt.py", line 255, in prompt_test
    apport_interface.run_report_bug()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 388, in run_report_bug
    if response['report']:
TypeError: string indices must be integers, not str

Changed in checkbox:
assignee: nobody → Marc Tardif (cr3)
importance: Undecided → High
status: New → In Progress
Marc Tardif (cr3) wrote :

This requires fixing the reference to test["suite"] and the return value of ui_present_report_details.

Daniel Manrique (roadmr) on 2012-03-20
Changed in checkbox:
status: In Progress → Fix Committed
milestone: none → 0.13.5
Ara Pulido (ara) on 2012-03-22
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers