Add -k flag to util/regress.

--HG--
extra : convert_revision : 6dae828a1b6a254821095a1743325976202beec1
This commit is contained in:
Steve Reinhardt 2007-11-13 18:45:51 -08:00
parent 5772e3cada
commit af6e4bf96a

View file

@ -52,6 +52,8 @@ optparser.add_option('--scons-opts', dest='scons_opts', default='',
help='scons options', metavar='OPTS') help='scons options', metavar='OPTS')
optparser.add_option('-j', '--jobs', type='int', default=1, optparser.add_option('-j', '--jobs', type='int', default=1,
help='number of parallel jobs to use') help='number of parallel jobs to use')
optparser.add_option('-k', '--keep-going', action='store_true',
help='keep going after errors')
(options, tests) = optparser.parse_args() (options, tests) = optparser.parse_args()
@ -105,6 +107,8 @@ else:
scons_opts = options.scons_opts scons_opts = options.scons_opts
if options.jobs != 1: if options.jobs != 1:
scons_opts += ' -j %d' % options.jobs scons_opts += ' -j %d' % options.jobs
if options.keep_going:
scons_opts += ' -k'
system('scons IGNORE_STYLE=True %s %s' % (scons_opts, ' '.join(targets))) system('scons IGNORE_STYLE=True %s %s' % (scons_opts, ' '.join(targets)))