Thanks, Daniel. 

I looked and found the test repository exists, but for some reason the python 
tests aren't targeting that directory, they're targeting my home directory, and 
failing.

Directory 'svn-test-work' exists:

   -bash-3.2$ ls -l 
/opt/svn/build/subversion-1.6.12/subversion/tests/cmdline/svn-test-work
   total 24
   drwxr-xr-x 4 root root 4096 Oct 27 12:25 local_tmp
   drwxr-xr-x 2 root root 4096 Oct 27 09:12 repositories
   drwxr-xr-x 2 root root 4096 Oct 27 09:12 working_copies

Tests target different directory:

   START: getopt_tests.py
   CMD: svnadmin create svn-test-work/local_tmp/repos --bdb-txn-nosync CMD:     
  
   /opt/svn/build/subversion-1.6.12/subversion/svnadmin/svnadmin create 
svn-test-work/local_tmp/repos --bdb-txn-nosync    
   exited with 1
   <TIME = 0.027599>
   svnadmin: Can't open file 
'/net/nnmx-blv-01-tmp/export/home/tx714c/.subversion/servers': Permission denied
   Traceback (most recent call last):
     File 
"/opt/svn/build/subversion-1.6.12/subversion/tests/cmdline/getopt_tests.py", 
line 203, in ?
       svntest.main.run_tests(test_list)
     File 
"/opt/svn/build/subversion-1.6.12/subversion/tests/cmdline/svntest/main.py", 
line 1606, in run_tests
       actions.setup_pristine_repository()
     File 
"/opt/svn/build/subversion-1.6.12/subversion/tests/cmdline/svntest/actions.py", 
line 50, in    
   setup_pristine_repository
       main.create_repos(main.pristine_dir)
     File 
"/opt/svn/build/subversion-1.6.12/subversion/tests/cmdline/svntest/main.py", 
line 698, in create_repos
       raise SVNRepositoryCreateFailure("".join(stderr).rstrip())
   svntest.main.SVNRepositoryCreateFailure: svnadmin: Can't open file 
'/net/nnmx-blv-01-
   tmp/export/home/tx714c/.subversion/servers': Permission denied
   END: getopt_tests.py
   ELAPSED: getopt_tests.py 00:00:00



 ------------------------------------------

                 Aodhan Hoffman 
                 Network Tools & Performance Management 
                 DNCMS,  NAMS,  NLS,  XTend, VoIP, E911

                 Desk: 425 / 865-6829
                 Mobile: 206 / 478-9568
                 Email: aodhan.hoff...@boeing.com

 ------------------------------------------ 

-----Original Message-----
From: Daniel Shahaf [mailto:d...@daniel.shahaf.name] 
Sent: Thursday, October 28, 2010 6:06 AM
To: users@subversion.apache.org
Subject: Re: Errors in running pythong tests in make check

Hoffman, Aodhan wrote on Wed, Oct 27, 2010 at 11:14:02 -0700:
> 
> I am able to configure and build subversion fine now, after some config 
> option tweaking, but the tests still fail half way through.
> 
> I drilled down to the first failure to find out more, but based on tests.log 
> it looks like the issue is simply that the python tests are running in my 
> home directory rather than the repository directory. I'm running the tests 
> from /opt/svn/build/subversion-1.6.12/subversion, but they're looking at 
> /net/nnmx-blv-01-tmp/export/home/tx714c/. I've searched for someway to direct 
> the tests to look at the appropriate repository, /opt/svn/repo, but nothing 
> in the documentation discusses this.
> 
> Can anyone tell me where to tell make check or configure where the repository 
> is supposed to go? Thanks!
> 

The tests DO NOT run against existing repositories.  NEVER point a Subversion 
on your repository until AFTER it has been tested.

The test create repositories under subversion/tests/cmdline/svn-test-work/.
They make that directory if it doesn't exist, but you can pre-create it as a 
symlink if you need to.

Reply via email to