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

RE: svn commit: r1606743 - in /subversion/trunk/subversion/tests/cmdline: svnadmin_tests.py svntest/main.py

From: Bert Huijben <bert_at_qqmail.nl>
Date: Mon, 30 Jun 2014 16:56:05 +0200

> -----Original Message-----
> From: stefan2_at_apache.org [mailto:stefan2_at_apache.org]
> Sent: maandag 30 juni 2014 15:58
> To: commits_at_subversion.apache.org
> Subject: svn commit: r1606743 - in
> /subversion/trunk/subversion/tests/cmdline: svnadmin_tests.py
> svntest/main.py
>
> Author: stefan2
> Date: Mon Jun 30 13:57:52 2014
> New Revision: 1606743
>
> URL: http://svn.apache.org/r1606743
> Log:
> Instead of manually fiddling with FSFS index data in our test suite,
> use the svnfsfs tool to read and rewrite the indexes after we manipulated
> the revision contents.
>
> * subversion/tests/cmdline/svnadmin_tests.py
> (FSFS_Index): New utility class handling all the index access.
> (read_l2p): Drop obsolete utility.
> (set_changed_path_list): Use the new class to read the index data and
> to keep it consistent with our manipulated
> rev content.
> (verify_invalid_path_changes): Update expected errors as we don't get
> low-level checksum mismatches anymore.

Some python versions used by our buildbot don't like the usage of the 'format()' function.

[[[
W: CWD: /home/bt/slaves/x64-centos/build/subversion/tests/cmdline
Traceback (most recent call last):
  File "/home/bt/slaves/x64-centos/build/subversion/tests/cmdline/svntest/main.py", line 1634, in run
    rc = self.pred.run(sandbox)
  File "/home/bt/slaves/x64-centos/build/subversion/tests/cmdline/svntest/testcase.py", line 254, in run
    return self._delegate.run(sandbox)
  File "/home/bt/slaves/x64-centos/build/subversion/tests/cmdline/svntest/testcase.py", line 176, in run
    return self.func(sandbox)
  File "/home/bt/slaves/x64-centos/build/subversion/tests/cmdline/svnadmin_tests.py", line 2150, in verify_invalid_path_changes
    "_0.0.t1-1 add-dir false false /A\n\n")
  File "/home/bt/slaves/x64-centos/build/subversion/tests/cmdline/svnadmin_tests.py", line 396, in set_changed_path_list
    idx.modify_item(1, offset, len(changes) + 1)
  File "/home/bt/slaves/x64-centos/build/subversion/tests/cmdline/svnadmin_tests.py", line 331, in modify_item
    values[0] = format(offset, 'x')
NameError: global name 'format' is not defined
FAIL: svnadmin_tests.py 33: detect invalid changed path list entries
]]]

        Bert
Received on 2014-06-30 16:56:46 CEST

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.