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

Re: cat_tests.py 5 failing because of double-escaped path in expected error message

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Mon, 14 Feb 2011 10:00:50 +0000

On Fri, 2011-02-11, Johan Corveleyn wrote:
> Hi,
>
> Currently (trunk_at_1068411), cat_tests.py 5 (cat should skip uncattable
> resources) is failing on my machine (Windows XP). There seems to be
> some double-escaping of the path in the expected error message. I
> don't understand why this only happens on my machine, and not for
> instance on the Windows buildbots.
>
> Anyone have an idea?

The escaping is because the "expected" string is a RegEx whereas the
"received" string is not, so that in itself is not the reason for the
mismatch.

Maybe there's an EOL style difference or some other minor difference
that's hard to see.

- Julian

> See fail.log in attachment, and some relevant excerpt below:
>
> EXCEPTION: Failure: Cat failed: expected error "svn: warning: W195007:
> 'C\:\\research\\svn\\client\_build\\svn\_trunk\\Release\\subversion\\tests\\cmdline\\svn\-test\-work\\working\_copies\\cat\_tests\-5\\A\\D\\G'
> refers to a directory
> svn: warning: W200005:
> 'C\:\\research\\svn\\client\_build\\svn\_trunk\\Release\\subversion\\tests\\cmdline\\svn\-test\-work\\working\_copies\\cat\_tests\-5\\A\\D\\new'
> is not under version control
> .*
> svn: E200000: A problem occurred; see other errors for details
> ", but received "svn: warning: W195007:
> 'C:\research\svn\client_build\svn_trunk\Release\subversion\tests\cmdline\svn-test-work\working_copies\cat_tests-5\A\D\G'
> refers to a directory
> svn: warning: W200005:
> 'C:\research\svn\client_build\svn_trunk\Release\subversion\tests\cmdline\svn-test-work\working_copies\cat_tests-5\A\D\new'
> is not under version control
> svn: E200000: A problem occurred; see other errors for details
> "
> Traceback (most recent call last):
> File "C:\research\svn\client_build\svn_trunk\subversion\tests\cmdline\svntest\main.py",
> line 1222, in run
> rc = self.pred.run(sandbox)
> File "C:\research\svn\client_build\svn_trunk\subversion\tests\cmdline\svntest\testcase.py",
> line 176, in run
> return self.func(sandbox)
> File "C:\research\svn\client_build\svn_trunk\subversion\tests\cmdline\cat_tests.py",
> line 175, in cat_skip_uncattable
> (expected_err3, "".join(error)))
>
>
> Cheers,
Received on 2011-02-14 16:39:40 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.