Changeset c2df65b in rtems-tools


Ignore:
Timestamp:
Apr 26, 2017, 10:01:23 AM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
fc22d2a
Parents:
ab57e79
Message:

rtems-bsp-builder: Fix access when there are no messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/check.py

    rab57e79 rc2df65b  
    322322
    323323    def get_warning_messages(self, arch = None, bsp = None, build = None):
    324         messages = self.messages['warnings'][self._key(arch, bsp, build)]
     324        key = self._key(arch, bsp, build)
     325        if key not in self.messages['warnings']:
     326            return []
     327        messages = self.messages['warnings'][key]
    325328        return ['%s %s' % (m, messages[m]) for m in messages]
    326329
    327330    def get_error_messages(self, arch = None, bsp = None, build = None):
    328         messages = self.messages['errors'][self._key(arch, bsp, build)]
     331        key = self._key(arch, bsp, build)
     332        if key not in self.messages['errors']:
     333            return []
     334        messages = self.messages['errors'][key]
    329335        return ['%s %s' % (m, messages[m]) for m in messages]
    330336
Note: See TracChangeset for help on using the changeset viewer.