4ad1e245f8fa — Oben Sonne tip 8 years ago
server: more verbose logging when testing subprocess termination
1 files changed, 4 insertions(+), 3 deletions(-)

M server/src/tests/__init__.py
M server/src/tests/__init__.py +4 -3
@@ 55,10 55,11 @@ class Process(object):
         if err:
             printheadline("%s - errors" % myname)
             print err
-        if rc == os.EX_OK and not err:
-            assert not expecterrors
+        if rc == os.EX_OK: # and not err:
+            assert not expecterrors, 'expected subprocess to exit with error'
         else:
-            assert ignorerrors or expecterrors
+            assert ignorerrors or expecterrors, ('expected subprocess to '
+                'return without error')
 
 class Server(Process):
     """