SCons exits with a non-zero status in case of test failures.
This commit is contained in:
parent
2ad16f1db3
commit
8f5c6f4da0
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ import time
|
|||
import types
|
||||
import shutil
|
||||
|
||||
import SCons.Errors
|
||||
|
||||
class DefineDict(object):
|
||||
"""
|
||||
A dictionary-like object which generates appropriate preprocessor
|
||||
|
|
@ -85,6 +87,10 @@ Up-to-date tests skipped: %(skipped)s
|
|||
failed=len(self.failed),
|
||||
skipped=len(self.tests))
|
||||
|
||||
if self.failed:
|
||||
raise SCons.Errors.BuildError(self, 'One or more tests failed.')
|
||||
|
||||
|
||||
testResults = TestResults()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue