old_contents: #!/bin/env python
  """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)
  
  
  
  
new_contents: #!/bin/env python
  """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)
  
  
  
subject: Exit non-zero if unit tests failed