chiark / gitweb /
Use Automake's simple test infrastructure for running Python-based
[disorder] / tests / recode.py
index 1539da0ea871d7ee84750ddbc380782d4c06c04b..d57db022445ac10811b3ab3ef1136186ecd676b9 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python -u
 #
 # This file is part of DisOrder.
 # Copyright (C) 2008 Richard Kettlewell
@@ -42,7 +42,7 @@ def test():
     if sys.platform == "darwin":
       print "Sorry, cannot run this test on Darwin"
       # ...because local fs is always UTF-8
-      return
+      sys.exit(77)
     dtest.start_daemon()
     dtest.create_user()
     dtest.rescan()