mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-09 04:28:30 -05:00
SCons exits with a non-zero status in case of test failures.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user