Checkbox dependencies sometimes fail when dependents aren't available

Bug #430051 reported by Marc Tardif on 2009-09-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
High
Marc Tardif

Bug Description

Sometimes, the depends attribute in a test definition might point to a test name which either doesn't meet requirements or simply doesn't exist. The current behavior produces the following traceback which results in no tests being run. Instead, only that test should be skipped.

Traceback (most recent call last):
  File "/srv/trunk.certification.canonical.com/checkbox/checkbox/reactor.py", line 89, in fire
    results.append(handler(*args, **kwargs))
  File "/srv/trunk.certification.canonical.com/checkbox/plugins/tests_prompt.py", line 87, in prompt_tests
    self._iterator = JobIterator(tests, self._manager.registry)
  File "/srv/trunk.certification.canonical.com/checkbox/checkbox/job.py", line 103, in __init__
    iterator = DependsIterator(iterator, compare)
  File "/srv/trunk.certification.canonical.com/checkbox/checkbox/depends.py", line 41, in __init__
    depends = [element_dict[d] for d in depends]
KeyError: 'cd-dvd/cdrom-read'

Related branches

Marc Tardif (cr3) on 2009-09-15
Changed in checkbox:
assignee: nobody → Marc Tardif (cr3)
importance: Undecided → High
milestone: none → 0.8-alpha6
status: New → Fix Committed
Marc Tardif (cr3) on 2009-10-14
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.

Other bug subscribers