The code is not using unittest.main. You need to check the result using TestResult.wasSuccessful and call sys.exit manually.
import sys
....
ret = not runner.run(suite).wasSuccessful()
sys.exit(ret)
The code is not using unittest.main. You need to check the result using TestResult.wasSuccessful and call sys.exit manually.
import sys
....
ret = not runner.run(suite).wasSuccessful()
sys.exit(ret)