[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: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 08 Jun 2010 00:29:50 +0100

On Mon, 2010-06-07 at 15:47 -0400, NOCERA, ANDY (ATTSI) wrote:
> Julian,
>
> Below it claims "Expected 'mu' and actual 'mu' in disk tree are
> different!" I see them as the same.

There is a difference: One has property 'editme': 'the bar fighters',
the other has 'editme': 'the foo fighters'.

The command that was supposed to edit that property went like this:

[[[
CMD: svn propedit editme svn-test-work/working_copies/prop_tests-1/A/mu
--config-dir
/usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
work/local_tmp/config --password rayjandom --no-auth-cache --username
jrandom <TIME = 0.338089>
No changes to property 'editme' on
'svn-test-work/working_copies/prop_tests-1/A/mu'
]]]

But when I run that test on my (Ubuntu) system, the output for that part
is:

[[[
CMD: svn propedit editme svn-test-work/working_copies/prop_tests-1/A/mu
--config-dir /home/julianfoad/build/subversion-d/subversion/tests/cmdline/svn-test-work/local_tmp/config --password rayjandom --no-auth-cache --username jrandom
<TIME = 0.237794>
Set new value for property 'editme' on
'svn-test-work/working_copies/prop_tests-1/A/mu'
]]]

So the "propedit" isn't working. The "propedit" command is supposed to
invoke an editor which can be specified by an environment variable.
Looking at the Python code in the test suite, I see it is configured
like so (in prop_tests.py):

[[[
  svntest.main.use_editor('foo_to_bar')
  # Edit one property
  svntest.main.run_svn(None, 'propedit', 'editme',
                       os.path.join(wc_dir, 'A', 'mu'))
]]]

where use_editor is defined in svntest/main.py as:

[[[
def use_editor(func):
  os.environ['SVN_EDITOR'] = svneditor_script
  os.environ['SVN_MERGE'] = svneditor_script
  os.environ['SVNTEST_EDITOR_FUNC'] = func
  os.environ['SVN_TEST_PYTHON'] = sys.executable
]]]

That's rather complex:

  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'.
  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.

- Julian

> CMD: svnadmin create svn-test-work/local_tmp/repos --bdb-txn-nosync
> <TIME = 0.152026>
> CMD: svn import -m "Log message for revision 1."
> svn-test-work/local_tmp/greekfiles
> file:///usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/sv
> n-test-work/local_tmp/repos --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.383874>
>
> CMD: svn import -m "Log message for revision 1."
> svn-test-work/local_tmp/greekfiles file:///usr/tmp/x --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.383874>
> Adding svn-test-work/local_tmp/greekfiles/A
> Adding svn-test-work/local_tmp/greekfiles/A/B
> Adding svn-test-work/local_tmp/greekfiles/A/B/lambda
> Adding svn-test-work/local_tmp/greekfiles/A/B/E
> Adding svn-test-work/local_tmp/greekfiles/A/B/E/alpha
> Adding svn-test-work/local_tmp/greekfiles/A/B/E/beta
> Adding svn-test-work/local_tmp/greekfiles/A/B/F
> Adding svn-test-work/local_tmp/greekfiles/A/mu
> Adding svn-test-work/local_tmp/greekfiles/A/C
> Adding svn-test-work/local_tmp/greekfiles/A/D
> Adding svn-test-work/local_tmp/greekfiles/A/D/gamma
> Adding svn-test-work/local_tmp/greekfiles/A/D/G
> Adding svn-test-work/local_tmp/greekfiles/A/D/G/rho
> Adding svn-test-work/local_tmp/greekfiles/A/D/G/pi
> Adding svn-test-work/local_tmp/greekfiles/A/D/G/tau
> Adding svn-test-work/local_tmp/greekfiles/A/D/H
> Adding svn-test-work/local_tmp/greekfiles/A/D/H/chi
> Adding svn-test-work/local_tmp/greekfiles/A/D/H/omega
> Adding svn-test-work/local_tmp/greekfiles/A/D/H/psi
> Adding svn-test-work/local_tmp/greekfiles/iota
>
> Committed revision 1.
> CMD: svnadmin create svn-test-work/repositories/prop_tests-1
> --bdb-txn-nosync <TIME = 0.137276>
> CMD: svnadmindump svn-test-work/local_tmp/repos | svnadminload
> svn-test-work/repositories/prop_tests-1 --ignore-uuid <TIME = 0.139582>
> CMD: svn co
> file:///usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/sv
> n-test-work/repositories/prop_tests-1
> svn-test-work/working_copies/prop_tests-1 --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.598268>
> A svn-test-work/working_copies/prop_tests-1/A
> A svn-test-work/working_copies/prop_tests-1/A/B
> A svn-test-work/working_copies/prop_tests-1/A/B/lambda
> A svn-test-work/working_copies/prop_tests-1/A/B/E
> A svn-test-work/working_copies/prop_tests-1/A/B/E/alpha
> A svn-test-work/working_copies/prop_tests-1/A/B/E/beta
> A svn-test-work/working_copies/prop_tests-1/A/B/F
> A svn-test-work/working_copies/prop_tests-1/A/mu
> A svn-test-work/working_copies/prop_tests-1/A/C
> A svn-test-work/working_copies/prop_tests-1/A/D
> A svn-test-work/working_copies/prop_tests-1/A/D/gamma
> A svn-test-work/working_copies/prop_tests-1/A/D/G
> A svn-test-work/working_copies/prop_tests-1/A/D/G/pi
> A svn-test-work/working_copies/prop_tests-1/A/D/G/rho
> A svn-test-work/working_copies/prop_tests-1/A/D/G/tau
> A svn-test-work/working_copies/prop_tests-1/A/D/H
> A svn-test-work/working_copies/prop_tests-1/A/D/H/chi
> A svn-test-work/working_copies/prop_tests-1/A/D/H/omega
> A svn-test-work/working_copies/prop_tests-1/A/D/H/psi
> A svn-test-work/working_copies/prop_tests-1/iota
> Checked out revision 1.
> CMD: svn propset blue azul
> svn-test-work/working_copies/prop_tests-1/A/mu --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.102801>
> property 'blue' set on 'svn-test-work/working_copies/prop_tests-1/A/mu'
> CMD: svn propset green verde
> svn-test-work/working_copies/prop_tests-1/A/mu --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.092393>
> property 'green' set on 'svn-test-work/working_copies/prop_tests-1/A/mu'
> CMD: svn propset editme "the foo fighters"
> svn-test-work/working_copies/prop_tests-1/A/mu --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.148250>
> property 'editme' set on
> 'svn-test-work/working_copies/prop_tests-1/A/mu'
> CMD: svn propset red rojo
> svn-test-work/working_copies/prop_tests-1/A/D/G --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.096041>
> property 'red' set on 'svn-test-work/working_copies/prop_tests-1/A/D/G'
> CMD: svn propset yellow amarillo
> svn-test-work/working_copies/prop_tests-1/A/D/G --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.092249>
> property 'yellow' set on
> 'svn-test-work/working_copies/prop_tests-1/A/D/G'
> CMD: svn status -v -u -q svn-test-work/working_copies/prop_tests-1
> --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.151168>
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/iota
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/B
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/B/lambda
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/B/E
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/B/E/alpha
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/B/E/beta
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/B/F
> M 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/mu
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/C
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/gamma
> M 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/G
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/G/pi
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/G/rho
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/G/tau
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/H
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/H/chi
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/H/omega
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A/D/H/psi
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1/A
> 1 1 jrandom
> svn-test-work/working_copies/prop_tests-1
> Status against revision: 1
> CMD: svn propdel yellow svn-test-work/working_copies/prop_tests-1/A/D/G
> --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.106103>
> property 'yellow' deleted from
> 'svn-test-work/working_copies/prop_tests-1/A/D/G'.
> CMD: svn propedit editme svn-test-work/working_copies/prop_tests-1/A/mu
> --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.338089>
> No changes to property 'editme' on
> 'svn-test-work/working_copies/prop_tests-1/A/mu'
> CMD: svn proplist --verbose svn-test-work/working_copies/prop_tests-1
> svn-test-work/working_copies/prop_tests-1/A
> svn-test-work/working_copies/prop_tests-1/iota
> svn-test-work/working_copies/prop_tests-1/A/B
> svn-test-work/working_copies/prop_tests-1/A/C
> svn-test-work/working_copies/prop_tests-1/A/D
> svn-test-work/working_copies/prop_tests-1/A/mu
> svn-test-work/working_copies/prop_tests-1/A/B/E
> svn-test-work/working_copies/prop_tests-1/A/B/F
> svn-test-work/working_copies/prop_tests-1/A/B/lambda
> svn-test-work/working_copies/prop_tests-1/A/B/E/alpha
> svn-test-work/working_copies/prop_tests-1/A/B/E/beta
> svn-test-work/working_copies/prop_tests-1/A/D/G
> svn-test-work/working_copies/prop_tests-1/A/D/H
> svn-test-work/working_copies/prop_tests-1/A/D/gamma
> svn-test-work/working_copies/prop_tests-1/A/D/G/pi
> svn-test-work/working_copies/prop_tests-1/A/D/G/rho
> svn-test-work/working_copies/prop_tests-1/A/D/G/tau
> svn-test-work/working_copies/prop_tests-1/A/D/H/chi
> svn-test-work/working_copies/pro!
> p_tests-1/A/D/H/omega
> svn-test-work/working_copies/prop_tests-1/A/D/H/psi --config-dir
> /usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svn-test-
> work/local_tmp/config --password rayjandom --no-auth-cache --username
> jrandom <TIME = 0.107095>
> Properties on 'svn-test-work/working_copies/prop_tests-1/A/mu':
> green
> verde
> blue
> azul
> editme
> the foo fighters
> Properties on 'svn-test-work/working_copies/prop_tests-1/A/D/G':
> red
> rojo
> =============================================================
> Expected 'mu' and actual 'mu' in disk tree are different!
> =============================================================
> EXPECTED NODE TO BE:
> =============================================================
> * Node name: mu
> Path: __SVN_ROOT_NODE/A/mu
> Contents: This is the file 'mu'.
>
> Properties: {'blue': 'azul', 'editme': 'the bar fighters', 'green':
> 'verde'}
> Attributes: {}
> Children: None (node is probably a file)
> =============================================================
> ACTUAL NODE FOUND:
> =============================================================
> * Node name: mu
> Path: __SVN_ROOT_NODE/A/mu
> Contents: This is the file 'mu'.
>
> Properties: {'blue': 'azul', 'editme': 'the foo fighters', 'green':
> 'verde'}
> Attributes: {}
> Children: None (node is probably a file)
> Unequal at node mu
> Unequal at node A
> EXCEPTION: SVNTreeUnequal
> Traceback (most recent call last):
> File
> "/usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svntest/
> main.py", line 1224, in run
> rc = self.pred.run(**kw)
> File
> "/usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svntest/
> testcase.py", line 121, in run
> return self.func(sandbox)
> File "./prop_tests.py", line 90, in make_local_props
> expected_disk.old_tree())
> File
> "/usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svntest/
> tree.py", line 612, in compare_trees
> singleton_handler_b, b_baton)
> File
> "/usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svntest/
> tree.py", line 612, in compare_trees
> singleton_handler_b, b_baton)
> File
> "/usr/local/svn_build/subversion-1.6.9/subversion/tests/cmdline/svntest/
> tree.py", line 587, in compare_trees
> raise SVNTreeUnequal
> SVNTreeUnequal
> FAIL: prop_tests.py 1: write/read props in wc only (ps, pl, pdel, pe)
>
> -----Original Message-----
> From: Julian Foad [mailto:julianfoad_at_btopenworld.com]
> Sent: Monday, June 07, 2010 6:39 AM
> To: NOCERA, ANDY (ATTSI)
> Cc: dev_at_subversion.apache.org
> Subject: Re: Subversion Compile/Test on HPUX11.11: How to review/resolve
> make check results?
>
> On Wed, 2010-06-02 at 13:06 -0400, NOCERA, ANDY (ATTSI) wrote:
> > > Hi,
> > >
> > > I am new to building & testing SVN and I was wondering where to
> start
> > > in interpreting the failures identified from running make check.
>
> Hi Andy. As your message was five days ago, I expect you've already got
> past this, but if not, start by looking in the file 'tests.log' to find
> the detailed output from the first failure, or run the test individually
> as:
>
> subversion/tests/cmdline/utf8_tests.py 3 --verbose
>
> (See
> <http://svn.apache.org/repos/asf/subversion/trunk/subversion/tests/cmdli
> ne/README> for details.)
>
> I hope you're getting somewhere.
>
> - Julian
>
>
> > > At least one test FAILED, checking
> > > /usr/local/svn_build/subversion-1.6.9/tests.log
> > > FAIL: utf-test 3: test svn_utf_cstring_to_utf8_ex2
> > > FAIL: utf-test 4: test svn_utf_cstring_from_utf8_ex2
> > > FAIL: prop_tests.py 1: write/read props in wc only (ps, pl, pdel,
> pe)
> > > FAIL: prop_tests.py 16: property operations on an URL
>
>
>
Received on 2010-06-08 01:30:35 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.