X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2F__main__.py;h=b0598e7dbbff4fa082039b4c41bff1604e8c2506;hb=4436c4f4742b29c1e6eed699d11e05bc9e1f8414;hp=6a8af8a538397216234283e7fe350f0eff912f65;hpb=59a1dcf2bf416a2527f9fdfb377afbbfa6cef696;p=dunshire.git diff --git a/test/__main__.py b/test/__main__.py old mode 100644 new mode 100755 index 6a8af8a..b0598e7 --- a/test/__main__.py +++ b/test/__main__.py @@ -1,6 +1,10 @@ +#!/usr/bin/env python """ An implementation of __main__() that allows us to "run this module." """ from test import build_suite, run_suite -run_suite(build_suite()) +if run_suite(build_suite()).wasSuccessful(): + exit(0) +else: + exit(1)