Changeset 162cbda in rtems-source-builder


Ignore:
Timestamp:
Apr 10, 2018, 7:59:48 AM (17 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
cabaff8
Parents:
4b3e0f8
Message:

sb/config: Terminate building on an error.

This changes the previous functionality where the RSB switch to
dry run mode. This functionality can be enabled by adding
--keep-going.

Close #3209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/sb/config.py

    r4b3e0f8 r162cbda  
    313313
    314314    def _error(self, msg):
    315         err = 'error: %s' % (self._name_line_msg(msg))
    316         log.stderr(err)
    317         log.output(err)
    318         self.in_error = True
    319315        if not self.opts.dry_run():
    320             log.stderr('warning: switched to dry run due to errors')
    321             self.opts.set_dry_run()
     316            if self.opts.keep_going():
     317                err = 'error: %s' % (self._name_line_msg(msg))
     318                log.stderr(err)
     319                log.output(err)
     320                self.in_error = True
     321                log.stderr('warning: switched to dry run due to errors')
     322                self.opts.set_dry_run()
     323        raise error.general(self._name_line_msg(msg))
    322324
    323325    def _label(self, name):
Note: See TracChangeset for help on using the changeset viewer.