"""Run HTCondor-CE unit tests"""

import glob
import unittest

TESTS = [test.strip('.py') for test in glob.glob('test*.py')]
SUITE = unittest.TestLoader().loadTestsFromNames(TESTS)
unittest.TextTestRunner(verbosity=2).run(SUITE)




"""Run HTCondor-CE unit tests"""

import glob
import unittest
import sys

TESTS = [test.strip('.py') for test in glob.glob('test*.py')]
SUITE = unittest.TestLoader().loadTestsFromNames(TESTS)
RESULTS = unittest.TextTestRunner(verbosity=2).run(SUITE)

if not RESULTS.wasSuccessful():
    sys.exit(1)



Exit non-zero if unit tests failed
Exit non-zero if unit tests failed

  """Run HTCondor-CE unit tests"""
  
  import glob
  import unittest
+ import sys
  
  TESTS = [test.strip('.py') for test in glob.glob('test*.py')]
  SUITE = unittest.TestLoader().loadTestsFromNames(TESTS)
- unittest.TextTestRunner(verbosity=2).run(SUITE)
+ RESULTS = unittest.TextTestRunner(verbosity=2).run(SUITE)
+ 
+ if not RESULTS.wasSuccessful():
+     sys.exit(1)
  
  
  
- 
Exit non-zero if unit tests failed
## Code Before:
"""Run HTCondor-CE unit tests"""

import glob
import unittest

TESTS = [test.strip('.py') for test in glob.glob('test*.py')]
SUITE = unittest.TestLoader().loadTestsFromNames(TESTS)
unittest.TextTestRunner(verbosity=2).run(SUITE)




## Instruction:
Exit non-zero if unit tests failed
## Code After:
"""Run HTCondor-CE unit tests"""

import glob
import unittest
import sys

TESTS = [test.strip('.py') for test in glob.glob('test*.py')]
SUITE = unittest.TestLoader().loadTestsFromNames(TESTS)
RESULTS = unittest.TextTestRunner(verbosity=2).run(SUITE)

if not RESULTS.wasSuccessful():
    sys.exit(1)


