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

RE: Subversion Compile/Test on HPUX11.11: How to review/resolve make check results?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 8 Jun 2010 07:52:44 +0300 (Jerusalem Daylight Time)

Julian Foad wrote on Tue, 8 Jun 2010 at 02:29 -0000:
> 1. The test suite sets the environment variable SVN_EDITOR to
> os.path.join(sys.path[0], 'svneditor.py'), i.e.
> 'subversion/tests/cmdline/svneditor.py'.

We could also set it to

    sys.executable + space + 'subversion/tests/cmdline/svneditor.py'
    (+ appropriate quoting)

I had to do the same for windows (see use of envvar SVN_TEST_PYTHON)
a long time ago, for the same reason you speculate below.

It'd be something like this (but less crude than it):

[[[
Index: subversion/tests/cmdline/svntest/main.py
===================================================================
--- subversion/tests/cmdline/svntest/main.py (revision 951533)
+++ subversion/tests/cmdline/svntest/main.py (working copy)
@@ -119,7 +119,7 @@
 if windows:
   svneditor_script = os.path.join(sys.path[0], 'svneditor.bat')
 else:
- svneditor_script = os.path.join(sys.path[0], 'svneditor.py')
+ svneditor_script = "'%s' '%s'" % (sys.executable, os.path.join(sys.path[0], 'svneditor.py'))
 
 # Username and password used by the working copies
 wc_author = 'jrandom'
]]]

Daniel

> 2. "svn propedit" will execute the program named in SVN_EDITOR.
> 3. "svneditor.py" looks at the environment variable
> SVNTEST_EDITOR_FUNC and executes the Python function named therein.
> 4. The Python function foo_to_bar() (defined in svneditor.py) does the
> foo-to-bar text substitution.
>
> So the problem might well be something to do with environment variables
> or running external scripts on your system. Is 'svneditor.py' marked as
> executable? It should be. That's probably the problem.
Received on 2010-06-08 06:52:24 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.