diff options
Diffstat (limited to 'cpp/allTests.py')
-rwxr-xr-x | cpp/allTests.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/allTests.py b/cpp/allTests.py index 33902177f9c..294bd044161 100755 --- a/cpp/allTests.py +++ b/cpp/allTests.py @@ -9,7 +9,7 @@ # # ********************************************************************** -import os +import os, sys for toplevel in [".", "..", "../..", "../../..", "../../../.."]: if os.path.exists(os.path.normpath(toplevel + "/config/TestUtil.py")): @@ -34,4 +34,12 @@ for i in \ print "*** running tests in " + dir + ":" print - os.system("python " + os.path.normpath(dir + "/run.py")) + try: + execfile(os.path.normpath(dir + "/run.py")) + except SystemExit, (ex,): + if ex: + sys.exit(ex) + + + + |