1. edgewall
  2. Trac


Christian Boos  committed b638a95

1.0.2dev: print `trac-admin` errors in functional tests.

Print the error when an exception is thrown due to a non-zero return
code from calling `trac-admin`.

Patch by Ryan J Ollos <ryan.j.ollos@gmail.com>.

  • Participants
  • Parent commits febb077
  • Branches 1.0-stable

Comments (0)

Files changed (1)

File trac/tests/functional/testenv.py

View file
         if proc.returncode:
-            raise Exception('Failed with exitcode %s running trac-admin ' \
-                            'with %r' % (proc.returncode, args))
+            raise Exception("Failed while running trac-admin with arguments %r.\n"
+                            "Exitcode: %s \n%s"
+                            % (args, proc.returncode, out))
     def start(self):
         """Starts the webserver, and waits for it to come up."""