test.py returns 0 on failure (== buildbots always green)

Issue #28 resolved
Martin Sandve Alnæs created an issue

Anders changed in test/test.py (440fbefffbf1f7c1978d4bbdb9314821868eb28a):

-    failure = os.system("python test.py")
+    failure = os.system("python test.py | tee -a %s" % logfile)

Comments (3)

  1. Anders Logg (Chalmers)

    There seem to be workarounds for this (getting the exit status of command earlier in the pipe) but they all seem to depend on the specific dialect of the shell so teeing to logfile has been disabled for now.

  2. Log in to comment