]> gitweb.michael.orlitzky.com - dunshire.git/blobdiff - test/__main__.py
Use a shebang for the main test executable.
[dunshire.git] / test / __main__.py
old mode 100644 (file)
new mode 100755 (executable)
index 6a8af8a..8d88f64
@@ -1,6 +1,12 @@
+#!/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())
+result = run_suite(build_suite())
+
+if result.wasSuccessful():
+    exit(0)
+else:
+    exit(1)