Edgewall Software
Modify

Opened 8 years ago

Closed 8 years ago

#12253 closed defect (worksforme)

Functional test failures with Subversion 1.9

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone:
Component: version control Version:
Severity: normal Keywords: svn svn19
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I upgraded my client from 1.8.13 to 1.9.2 a few days ago and noticed some test failures today. I'm assuming the failures are related to the upgrade, but cannot say definitively.

python trac/tests/functional/__init__.py 
..................FFFFF...FF..F.................................................................................................................................................SKIP: RegressionTestTicket11515 (Message catalogs not compiled)
.........................................
======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.TestEmptySvnRepo)
Check empty repository
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 55, in runTest
    tc.follow('Last Change')
  File "/Users/rjollos/Documents/Workspace/trac-dev/pve/lib/python2.7/site-packages/twill/commands.py", line 202, in follow
    raise TwillAssertionError("no links match to '%s'" % (what,))
TwillAssertionError: no links match to 'Last Change'

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.TestRepoCreation)
Create a directory tree in the repository
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 77, in runTest
    tc.find('component1')
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 229, in better_find
    (to_unicode(e), filename))
TwillAssertionError: no match to 'component1' at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/TestRepoCreation.html

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.TestRepoBrowse)
Add a file to the repository and verify it is in the browser
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 116, in runTest
    tc.find('component1')
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 229, in better_find
    (to_unicode(e), filename))
TwillAssertionError: no match to 'component1' at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/TestRepoBrowse.html

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.TestNewFileLog)
Verify browser log for a new file
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 137, in runTest
    tc.find('@%d' % revision)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 229, in better_find
    (to_unicode(e), filename))
TwillAssertionError: no match to '@3' at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/TestNewFileLog.html

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.RegressionTestTicket5819)
Test for regression of http://trac.edgewall.org/ticket/5819
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 156, in runTest
    tc.find(components, 's')
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 229, in better_find
    (to_unicode(e), filename))
TwillAssertionError: no match to 'Create component1/d.*Create component1/c.*Create component1/b.*Create component1/a' at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/RegressionTestTicket5819.html

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.RegressionTestTicket11346)
Test for regression of http://trac.edgewall.org/ticket/11346
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 260, in runTest
    tc.find('@1')
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 229, in better_find
    (to_unicode(e), filename))
TwillAssertionError: no match to '@1' at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/RegressionTestTicket11346.html

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.RegressionTestTicket11438)
Test for regression of http://trac.edgewall.org/ticket/11438
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 305, in runTest
    tc.url(self._tester.url + r'/log/\?revs=' + str(rev - 1) + '-head')
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 248, in better_url
    (to_unicode(e), filename))
TwillAssertionError: current url is 'http://127.0.0.1:8994/intertrac/log:@12:head';
does not match 'http://127.0.0.1:8994/log/\?revs=12-head'
 at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/RegressionTestTicket11438.html

======================================================================
FAIL: runTest (trac.versioncontrol.tests.functional.RegressionTestTicket11777)
Test for regression of http://trac.edgewall.org/ticket/11777
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/versioncontrol/tests/functional.py", line 368, in runTest
    tc.find(r'\[%d\]: ticket-11777' % rev)
  File "/Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/trac/tests/functional/better_twill.py", line 229, in better_find
    (to_unicode(e), filename))
TwillAssertionError: no match to '\[15\]: ticket-11777' at file:///Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git/testenv/trac/log/RegressionTestTicket11777.html

----------------------------------------------------------------------
Ran 217 tests in 430.063s

FAILED (failures=8)
make: *** [functional-test] Error 1

All unit tests pass on Mac OSX.

Attachments (0)

Change History (2)

comment:1 by Ryan J Ollos, 8 years ago

Keywords: svn svn19 added; subversion removed

comment:2 by Ryan J Ollos, 8 years ago

Milestone: 1.0.10
Resolution: worksforme
Status: newclosed

False report. The python virtual environment in which I was running the tests was still symbolically linked to the Subversion 1.8.13 libraries:

$find pve/lib/python2.7/site-packages/*svn* -maxdepth 1 -ls
51545214        8 lrwxr-xr-x    1 rjollos          staff                  56 Dec  1 17:13 pve/lib/python2.7/site-packages/libsvn -> /usr/local/Cellar/subversion/1.8.13/lib/svn-python/libsvn
51545236        8 lrwxr-xr-x    1 rjollos          staff                  53 Dec  1 17:13 pve/lib/python2.7/site-packages/svn -> /usr/local/Cellar/subversion/1.8.13/lib/svn-python/svn
51545300        8 -rw-r--r--    1 rjollos          staff                  57 Dec  1 17:13 pve/lib/python2.7/site-packages/svn.pth
$cat pve/lib/python2.7/site-packages/svn.pth 
/usr/local/Cellar/subversion/1.8.13/lib/svn-python/libsvn

Tests pass after changing to:

$find pve/lib/python2.7/site-packages/*svn* -maxdepth 1 -ls
51545214        8 lrwxr-xr-x    1 rjollos          staff                  56 Dec  1 17:13 pve/lib/python2.7/site-packages/libsvn -> /usr/local/Cellar/subversion/1.9.2/lib/svn-python/libsvn
51545236        8 lrwxr-xr-x    1 rjollos          staff                  53 Dec  1 17:13 pve/lib/python2.7/site-packages/svn -> /usr/local/Cellar/subversion/1.9.2/lib/svn-python/svn
51545300        8 -rw-r--r--    1 rjollos          staff                  57 Dec  1 17:13 pve/lib/python2.7/site-packages/svn.pth
$cat pve/lib/python2.7/site-packages/svn.pth 
/usr/local/Cellar/subversion/1.9.2/lib/svn-python/libsvn

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.