exit(1) if there was a failure or an error.

This commit is contained in:
Valentin Lorentz 2015-12-25 21:08:59 +01:00
parent fd24cebd07
commit e787d3d7b1

View File

@ -52,7 +52,11 @@ def main(args):
descriptions=True,
)
testLoader = unittest.loader.defaultTestLoader
testRunner.run(ts)
result = testRunner.run(ts)
if result.failures or result.errors:
exit(1)
else:
exit(0)
parser = argparse.ArgumentParser(