X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2F__main__.py;h=b0598e7dbbff4fa082039b4c41bff1604e8c2506;hb=5bcb67b592ff12a57f7cb9803305c380342ef71c;hp=175c884766c899a6cd668ded6ec00b601d1848e0;hpb=bdb596b84a06d0c97e39d42586a51fc36ba44186;p=dunshire.git diff --git a/test/__main__.py b/test/__main__.py old mode 100644 new mode 100755 index 175c884..b0598e7 --- a/test/__main__.py +++ b/test/__main__.py @@ -1,3 +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)