On Wed, 12 Apr 2006 04:00:52 +0530, <rooneg@tigris.org> wrote:
Author: rooneg
Date: Tue Apr 11 15:30:52 2006
New Revision: 19313
Modified:
trunk/subversion/tests/cmdline/svnsync_tests.py
Log:
* subversion/tests/cmdline/svnsync_tests.py
(run_test): Move checking for stderr output before checking
for lack
of stdout output. If there's no stdout data, it's likely
because
there is something on stderr, so showing the error is more
useful.
Modified: trunk/subversion/tests/cmdline/svnsync_tests.py
URL: http://svn.collab.net/viewvc/svn/trunk/subversion/tests/
cmdline/svnsync_tests.py?pathrev=19313&r1=19312&r2=19313
==============================================================================
--- trunk/subversion/tests/cmdline/svnsync_tests.py
(original)
+++ trunk/subversion/tests/cmdline/svnsync_tests.py
Tue Apr 11 15:30:52 2006
@@ -100,11 +100,11 @@
"synchronize", dest_sbox.repo_url,
"--username", svntest.main.wc_author,
"--password", svntest.main.wc_passwd)
+ if errput:
+ raise svntest.actions.SVNUnexpectedStderr(errput)
if not output:
# should be: ['Committing rev 1\n', 'Committing rev 2\n']
raise svntest.actions.SVNUnexpectedStdout("Missing
stdout")
- if errput:
- raise svntest.actions.SVNUnexpectedStderr(errput)
What happens if there is stdout *also*?
I think the right behavior should be
if errput:
if output:
print output
raise svntest.actions.SVNUnexpectedStderr(errput)
if not output:
raise svntest.actions.SVNUnexpectedStdout("Missing stdout")
if you like this, I could send in a patch.
Regards,
Madan.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 12 08:54:11 2006