#!/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)




#!/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)



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