summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/SubstTests.py
diff options
context:
space:
mode:
authoranatoly techtonik <techtonik@gmail.com>2014-03-21 08:23:36 (GMT)
committeranatoly techtonik <techtonik@gmail.com>2014-03-21 08:23:36 (GMT)
commit9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d (patch)
treed8d306ca1d4d8f543555511ed0bfc578c26d7ac6 /src/engine/SCons/SubstTests.py
parentffd96219e173cdc643a28fe44d344e274a156ce0 (diff)
downloadSCons-9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d.zip
SCons-9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d.tar.gz
SCons-9cbc6fcdd1a84d9af9bd9eb371f1522991caf73d.tar.bz2
Switch unit tests to configurable runner
Diffstat (limited to 'src/engine/SCons/SubstTests.py')
-rw-r--r--src/engine/SCons/SubstTests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/SCons/SubstTests.py b/src/engine/SCons/SubstTests.py
index ee9f3db..6f2eb3f 100644
--- a/src/engine/SCons/SubstTests.py
+++ b/src/engine/SCons/SubstTests.py
@@ -31,6 +31,8 @@ import unittest
from collections import UserDict
+import TestUnit
+
import SCons.Errors
from SCons.Subst import *
@@ -1233,8 +1235,7 @@ if __name__ == "__main__":
for tclass in tclasses:
names = unittest.getTestCaseNames(tclass, 'test_')
suite.addTests(list(map(tclass, names)))
- if not unittest.TextTestRunner().run(suite).wasSuccessful():
- sys.exit(1)
+ TestUnit.run(suite)
# Local Variables:
# tab-width:4