Fix KeyError on spec failure #80

Merged
merged 1 commit into from Dec 16, 2016

Conversation

Projects
None yet
2 participants
Owner

johnsca commented Dec 16, 2016

There seems to be a case where a test result can not get a name assigned.

ERROR:runner:Timeout exceeded. Failed to destroy all applications  in 60 seconds.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bundletester/runner.py", line 180, in _run_test
    self.builder.reset()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/builder.py", line 140, in reset
    ' in %s seconds.' % timeout)
RuntimeError: Timeout exceeded. Failed to destroy all applications  in 60 seconds.
cs:~juju-solutions/cwr
Traceback (most recent call last):
  File "/usr/local/bin/bundletester", line 11, in <module>
    sys.exit(entrypoint())
  File "/usr/local/lib/python2.7/dist-packages/bundletester/tester.py", line 157, in entrypoint
    status = main()
  File "/usr/local/lib/python2.7/dist-packages/bundletester/tester.py", line 146, in main
    [report.emit(result) for result in run()]
  File "/usr/local/lib/python2.7/dist-packages/bundletester/reporter.py", line 147, in emit
    cmd = message.test
  File "/usr/local/lib/python2.7/dist-packages/bundletester/reporter.py", line 16, in __getattr__
    return self[k]
KeyError: 'test'
Build step 'Execute shell' marked build as failure

@tvansteenburgh tvansteenburgh merged commit 0078036 into master Dec 16, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment