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

Re: ra_svn tests stuck in diff_tests.py

From: <bobgus_at_rcnChicago.com>
Date: 2003-01-21 20:17:28 CET

>From tests.log
pass pass
..
PASS: lt-fs-test 20: basic commit
PASS: lt-fs-test 21: copying and tracking copy history
svn: Test failed
svn: XFAIL
XFAIL: lt-fs-test 22: linking, so no copy history
PASS: lt-fs-test 23: merging commit
PASS: lt-fs-test 24: commit datestamps
...
...
START: basic_tests.py
CMD: svnadmin create local_tmp/repos
CMD: svn import --username apache --password jandom -m Log message
for revision 1. http://localhost/local_tmp/repos local_tmp/greekfiles
svn: RA layer request failed
svn: OPTIONS request failed on /local_tmp/repos
svn: OPTIONS of /local_tmp/repos: could not connect to server
Errors during initial 'svn import':
ACTUAL STDERR:
svn: RA layer request failed
svn: OPTIONS request failed on /local_tmp/repos
svn: OPTIONS of /local_tmp/repos: could not connect to server
caught unexpected exception
Traceback (most recent call last):
  File
/usr/local/src/svn_new/subversion/tests/clients/cmdline/svntest/testcase
.py, line 81, in run
    error = apply(self.pred.func, args)
  File
/usr/local/src/svn_new/subversion/tests/clients/cmdline/basic_tests.py,
 line 54, in basic_checkout
    if sbox.build():
  File
/usr/local/src/svn_new/subversion/tests/clients/cmdline/svntest/main.py
, line 356, in build
    return actions.make_repo_and_wc(self)
  File
/usr/local/src/svn_new/subversion/tests/clients/cmdline/svntest/actions.
py, line 588, in make_repo_and_wc
    guarantee_greek_repository(sbox.repo_dir)
  File
/usr/local/src/svn_new/subversion/tests/clients/cmdline/svntest/actions.
py, line 62, in guarantee_greek_repository
    sys.exit(1)
SystemExit: 1
FAIL: basic_tests.py 1: basic checkout of a wc

------
>From httpd.conf
..
DavLockDB /tmp/DavLock
   Location /repositories
     DAV On
     DAV svn
     SVNParentPath
/usr/local/src/svn_new/subversion/tests/clients/cmdline/repos
itories
   /Location

   Location /local_tmp/repos
     DAV On
     DAV svn
     SVNPath
/usr/local/src/svn_new/subversion/tests/clients/cmdline/local_tmp/r
epos
   /Location

...

running ./basic_tests.py --url=http://localhost from command line also fails..

May be permissions. httpd is running as 'apache'. Some of the files in
local_tmp are owned by 'apache', others by root.

Brute force check

[root@hoho0 cmdline]# chown -R apache *
[root@hoho0 cmdline]# chgrp -R apache *
[root@hoho0 cmdline]# su apache

bash-2.05$ ./basic_tests.py --url=http://localhost
CMD: svnadmin create local_tmp/repos
CMD: svn import --username apache --password jandom -m Log message
for revision 1. http://localhost/local_tmp/repos local_tmp/greekfiles
svn: RA layer request failed
svn: OPTIONS request failed on /local_tmp/repos
svn: OPTIONS of /local_tmp/repos: could not connect to server
Errors during initial 'svn import':
ACTUAL STDERR:
svn: RA layer request failed
svn: OPTIONS request failed on /local_tmp/repos
svn: OPTIONS of /local_tmp/repos: could not connect to server
...

Still has same errors.

Hmm, but, lookee here

httpd.conf
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
# Listen 80
Listen 192.168.49.21:80

Now, if I do
bash-2.05$ ./basic_tests.py --url=http://192.168.49.21
CMD: svnadmin create local_tmp/repos
CMD: svn import --username apache --password jandom -m Log message
for revision 1. http://192.168.49.21/local_tmp/repos local_tmp/greekfiles
CMD: svnadmin create repositories/basic_tests-1
CMD: svnadmin dump local_tmp/repos | svnadmin load
repositories/basic_tests-1

CMD: svn co --username apache --password jandom
http://192.168.49.21/
repositories/basic_tests-1 working_copies/basic_tests-1
CMD: svn co http://192.168.49.21/repositories/basic_tests-1/A
--username
apache --password jandom working_copies/basic_tests-1
CMD: svn rm working_copies/basic_tests-1/A/D/G
CMD: svn status -v -u -q working_copies/basic_tests-1
Interrupted
bash-2.05$

Seems to be working. I have to run out for a few hours now, will be back
later to run whole test again with the IP substitution for localhost.

Looks good though - thanks much.

BobG

capilato wrote:
Bob Gustafson bobgus@rcnChicago.com writes:

 All of the check, svncheck, davcheck were done with the same apache start.

 But, maybe not after svn 'make install' and before the 'make davcheck'.
 (100MB of error_log was recently blown away..)

 Am redoing 'make davcheck' now.

 Results seem to be the same though

 Running all tests in target-test.py...success
 Running all tests in run-fs-tests.py...success
 Running all tests in run-repos-tests.py...success
 Running all tests in getopt_tests.py...success
 Running all tests in basic_tests.py...FAILURE
 Running all tests in commit_tests.py...FAILURE
 Running all tests in update_tests.py...FAILURE
 Running all tests in switch_tests.py...FAILURE
 Ru...
 ...
 ...

What does tests.log (in the directory you ran the make from) show?
Have you setup your httpd.conf properly for doing dav-based testing
(see the README file in the subversion/tests/clients/cmdline directory)?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:04:21 2006

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.