[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Display stderr before throwing exception in the python test suite

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2007-01-09 15:01:39 CET

On Sun, Dec 31, 2006 at 09:35:15AM +0530, Madan U S wrote:
> I was stuck with a failure of checkout_tests in the incomplete-directories branch, because the test was throwing an exception 'EXCEPTION: SVNProcessTerminatedBySignal', but I had no clue what was failing.

I just had this problem myself again. While I certainly edit the tests
myself to set the problem condition up in some cases, it's also useful
to have the failing output for the cases where the output tells you
exactly what's wrong.

How about this patch?

When executing commands as part of the test framework, if a command
fails due to a signal (coredump, etc), output the stdout and stderr
before raising the exception, to aid debugging.

* subversion/tests/cmdline/svntest/main.py
  (run_command_stdin): Write stdout_lines and stderr_lines to stdout
    and stderr before raising an exception.

Suggested by: madanus, kameshj
Patch by: djames


  • text/plain attachment: patch
  • application/pgp-signature attachment: stored
Received on Tue Jan 9 15:01:50 2007

This is an archived mail posted to the Subversion Dev mailing list.