You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ryan Schmidt <su...@ryandesign.com> on 2019/11/25 04:40:51 UTC

One test fails in trans_tests.py

Hi,

I ran the Subversion 1.13.0 test suite on macOS 10.13.6. Everything passed except the first test in trans_tests.py:


START: trans_tests.py
W: Header expansion failed for svn-test-work/working_copies/trans_tests-1/header_unexp
W: 
Traceback (most recent call last):
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 1931, in run
    rc = self.pred.run(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/testcase.py", line 178, in run
    result = self.func(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/trans_tests.py", line 348, in keywords_from_birth
    raise svntest.Failure
Failure
FAIL:  trans_tests.py 1: commit new files with keywords active from birth
PASS:  trans_tests.py 2: update modified file with eol-style 'native'
PASS:  trans_tests.py 3: committing eol-style change forces text send
PASS:  trans_tests.py 4: keyword expansion for lone file in directory
PASS:  trans_tests.py 5: keyword expanded on cat
PASS:  trans_tests.py 6: copy, propset svn:eol-style, commit
PASS:  trans_tests.py 7: propset, commit, check out into another wc
PASS:  trans_tests.py 8: propset, revert
PASS:  trans_tests.py 9: retranslation occurs on a props-only update
W: svn: E200009: File '/.../subversion-1.13.0/subversion/tests/cmdline/svn-test-work/working_copies/trans_tests-10/auto.c' has inconsistent newlines
W: svn: E135000: Inconsistent line ending style
W: svn: E200042: Additional errors:
W: CWD: /.../subversion-1.13.0/subversion/tests/cmdline
W: EXCEPTION: Failure: Command failed: "/.../subversion-1.13.0/subversion/svn/svn add svn-test-work/working_copies/trans_tests-10/auto.c --config-dir ..."; exit code 1
Traceback (most recent call last):
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 1931, in run
    rc = self.pred.run(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/testcase.py", line 115, in run
    return self._delegate.run(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/testcase.py", line 178, in run
    result = self.func(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/trans_tests.py", line 931, in autoprops_inconsistent_eol
    [], 'add', sbox.ospath('auto.c'))
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/actions.py", line 340, in run_and_verify_svn
    expected_exit, *varargs)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/actions.py", line 378, in run_and_verify_svn2
    exit_code, out, err = main.run_svn(want_err, *varargs)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 818, in run_svn
    *(_with_auth(_with_config_dir(varargs))))
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 445, in run_command
    None, *varargs)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 666, in run_command_stdin
    '"; exit code ' + str(exit_code))
Failure: Command failed: "/.../subversion-1.13.0/subversion/svn/svn add svn-test-work/working_copies/trans_tests-10/auto.c --config-dir ..."; exit code 1
XFAIL: trans_tests.py 10: able to handle inconsistent eols on add
W: svn: E200009: Can't set 'svn:eol-style': file '/.../subversion-1.13.0/subversion/tests/cmdline/svn-test-work/working_copies/trans_tests-11/c.iota.c' has binary mime type property
W: CWD: /.../subversion-1.13.0/subversion/tests/cmdline
W: EXCEPTION: Failure: Command failed: "/.../subversion-1.13.0/subversion/svn/svn add svn-test-work/working_copies/trans_tests-11/c.iota.c --config-dir ..."; exit code 1
Traceback (most recent call last):
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 1931, in run
    rc = self.pred.run(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/testcase.py", line 115, in run
    return self._delegate.run(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/testcase.py", line 178, in run
    result = self.func(sandbox)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/trans_tests.py", line 950, in autoprops_inconsistent_mime
    [], 'add', sbox.ospath('c.iota.c'))
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/actions.py", line 340, in run_and_verify_svn
    expected_exit, *varargs)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/actions.py", line 378, in run_and_verify_svn2
    exit_code, out, err = main.run_svn(want_err, *varargs)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 818, in run_svn
    *(_with_auth(_with_config_dir(varargs))))
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 445, in run_command
    None, *varargs)
  File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 666, in run_command_stdin
    '"; exit code ' + str(exit_code))
Failure: Command failed: "/.../subversion-1.13.0/subversion/svn/svn add svn-test-work/working_copies/trans_tests-11/c.iota.c --config-dir ..."; exit code 1
XFAIL: trans_tests.py 11: able to handle inconsistent mime on add
END: trans_tests.py
ELAPSED: trans_tests.py 0:00:47.779387



Re: One test fails in trans_tests.py

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ryan Schmidt wrote on Mon, 25 Nov 2019 05:03 +00:00:
> On Nov 24, 2019, at 22:50, Ryan Schmidt wrote:
> > That line is 255 bytes long. Maybe hitting some keyword length limit?
> 
> Tests pass when I build in a shorter path; then the file contains:
> 
> $Header: 
> file:///private/tmp/subversion-1.13.0/subversion/tests/cmdline/svn-test-work/repositories/trans_tests-1/header_unexp 2 2019-11-25 05:00:28Z jrandom $
> 
> So it's getting cut off at 255 chars and I guess the test isn't expecting that.

Looks like you're hitting SVN_KEYWORD_MAX_LEN, which is indeed 255.

Re: One test fails in trans_tests.py

Posted by Ryan Schmidt <su...@ryandesign.com>.

On Nov 24, 2019, at 22:50, Ryan Schmidt wrote:

> On Nov 24, 2019, at 22:46, Daniel Shahaf wrote:
> 
>> Could you please show the contents of
>> svn-test-work/working_copies/trans_tests-1/header_unexp (in
>> subversion/tests/cmdline) after the test run?
> 
> Aha: It says:
> 
> 
> $Header: file:///opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_devel_subversion/subversion/work/subversion-1.13.0/subversion/tests/cmdline/svn-test-work/repositories/trans_tests-1/header_unexp 2 2019-11-25 02:17:33 $
> 
> 
> That line is 255 bytes long. Maybe hitting some keyword length limit?

Tests pass when I build in a shorter path; then the file contains:

$Header: file:///private/tmp/subversion-1.13.0/subversion/tests/cmdline/svn-test-work/repositories/trans_tests-1/header_unexp 2 2019-11-25 05:00:28Z jrandom $

So it's getting cut off at 255 chars and I guess the test isn't expecting that.



Re: One test fails in trans_tests.py

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 24, 2019, at 22:46, Daniel Shahaf wrote:

> Could you please show the contents of
> svn-test-work/working_copies/trans_tests-1/header_unexp (in
> subversion/tests/cmdline) after the test run?

Aha: It says:


$Header: file:///opt/local/var/macports/build/_Users_rschmidt_macports_macports-ports-ryandesign-fork_devel_subversion/subversion/work/subversion-1.13.0/subversion/tests/cmdline/svn-test-work/repositories/trans_tests-1/header_unexp 2 2019-11-25 02:17:33 $


That line is 255 bytes long. Maybe hitting some keyword length limit?


Re: One test fails in trans_tests.py

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ryan Schmidt wrote on Sun, Nov 24, 2019 at 22:40:51 -0600:
> Hi,
> 
> I ran the Subversion 1.13.0 test suite on macOS 10.13.6. Everything passed except the first test in trans_tests.py:
> 
> 
> START: trans_tests.py
> W: Header expansion failed for svn-test-work/working_copies/trans_tests-1/header_unexp
> W: 
> Traceback (most recent call last):
>   File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/main.py", line 1931, in run
>     rc = self.pred.run(sandbox)
>   File "/.../subversion-1.13.0/subversion/tests/cmdline/svntest/testcase.py", line 178, in run
>     result = self.func(sandbox)
>   File "/.../subversion-1.13.0/subversion/tests/cmdline/trans_tests.py", line 348, in keywords_from_birth
>     raise svntest.Failure
> Failure
> FAIL:  trans_tests.py 1: commit new files with keywords active from birth

Could you please show the contents of
svn-test-work/working_copies/trans_tests-1/header_unexp (in
subversion/tests/cmdline) after the test run?

You can use «make check TESTS="subversion/tests/cmdline/trans_tests.py"» to run
just that one test file.  (Or «cd …/cmdline && ./trans_tests.py 1» to run just
that one test function.)

Cheers,

Daniel