You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Johan Corveleyn <jc...@gmail.com> on 2011/02/11 21:32:06 UTC

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

Hi,

Currently (trunk@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?

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,
-- 
Johan

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

Posted by Julian Foad <ju...@wandisco.com>.
On Fri, 2011-02-11, Johan Corveleyn wrote:
> Hi,
> 
> Currently (trunk@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,