diff options
| author | anatoly techtonik <techtonik@gmail.com> | 2014-03-21 08:23:36 (GMT) |
|---|---|---|
| committer | anatoly techtonik <techtonik@gmail.com> | 2014-03-21 08:23:36 (GMT) |
| commit | 9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d (patch) | |
| tree | d8d306ca1d4d8f543555511ed0bfc578c26d7ac6 /src/engine/SCons/cppTests.py | |
| parent | ffd96219e173cdc643a28fe44d344e274a156ce0 (diff) | |
| download | SCons-9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d.zip SCons-9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d.tar.gz SCons-9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d.tar.bz2 | |
Switch unit tests to configurable runner
Diffstat (limited to 'src/engine/SCons/cppTests.py')
| -rw-r--r-- | src/engine/SCons/cppTests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/SCons/cppTests.py b/src/engine/SCons/cppTests.py index 2f2025b..5a06bee 100644 --- a/src/engine/SCons/cppTests.py +++ b/src/engine/SCons/cppTests.py @@ -27,6 +27,8 @@ import atexit import sys import unittest +import TestUnit + import cpp @@ -705,8 +707,7 @@ if __name__ == '__main__': pass names.sort() suite.addTests(list(map(tclass, names))) - if not unittest.TextTestRunner().run(suite).wasSuccessful(): - sys.exit(1) + TestUnit.run(suite) # Local Variables: # tab-width:4 |
