FreeCADTest.py invokes sys.exit() instead of the more aggressive os._exit()

With the ability to now pass the <exitCode> from sys.exit() up the
call stack to the shell, FreeCADTest.py should use sys.exit() instead
of the more aggressive os._exit() method that does not allow for
post-exception cleanup.
This commit is contained in:
Bruce Lacey
2016-03-19 10:13:25 -07:00
committed by wmayer
parent 9816e48b07
commit feac22b00d

View File

@@ -32,10 +32,10 @@
Log ("FreeCAD test running...\n\n")
import TestApp, os
import TestApp, sys
testResult = TestApp.TestText("TestApp.All")
Log ("FreeCAD test done\n")
os._exit(0 if testResult.wasSuccessful() else 1)
sys.exit(0 if testResult.wasSuccessful() else 1)