Added verbose flag in coverage test
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Tue, 19 Apr 2011 14:18:16 +0000 (16:18 +0200)
committerAlina Quereilhac <alina.quereilhac@inria.fr>
Tue, 19 Apr 2011 14:18:16 +0000 (16:18 +0200)
Makefile
src/nepi/util/server.py

index afebb0b..7f59148 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ coverage: all
        rm -f .coverage
        for i in `find "$(TESTDIR)" -perm -u+x -type f`; do \
                set -e; \
-               TESTLIBPATH="$(TESTLIB)" PYTHONPATH="$(PYPATH)" $(COVERAGE) -x $$i; \
+               TESTLIBPATH="$(TESTLIB)" PYTHONPATH="$(PYPATH)" $(COVERAGE) -x $$i -v; \
                done
        $(COVERAGE) -c
        $(COVERAGE) -r -m `find "$(BUILDDIR)" -name \\*.py -type f`
index 36e54dc..963ac14 100644 (file)
@@ -298,13 +298,9 @@ class Client(object):
         # will be able to connect to it
         helo = self._process.stderr.readline()
         if helo != 'READY.\n':
-            raise AssertionError, "Expected 'Ready.', got %r" % (helo,)
+            raise AssertionError, "Expected 'Ready.', got %r: %s" % (helo,
+                    helo + self._process.stderr.read())
         
-        if self._process.poll():
-            err = self._process.stderr.read()
-            raise RuntimeError("Client could not be executed: %s" % \
-                    err)
-
     def send_msg(self, msg):
         encoded = base64.b64encode(msg)
         data = "%s\n" % encoded