You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Alexander Kitaev <Al...@svnkit.com> on 2008/03/17 12:53:38 UTC

[PATCH] 1.5.x branch: python/cmdline

Hello,

I'm reposting this message because first time I specified branch 
incorrectly and the message was overlooked by developers because of 
that. Sorry.

Attached are patches that fixes number of minor issues in Subversion
python tests suite. Patch is against 1.5.x branch.

Explanation:

1. main.py patch

Recently we started to use client/server approach for running Subversion
python tests suite against SVNKit Subversion library. We use server that
accepts Subversion commands through the TCP/IP socket and client which
is a bash script - it reads parameters, stdin, certain environment
variables and then sends everything to the server.

To send data to the server we use netcat or, alternatively, bash
/dev/tcp/host/port device. In both case complete stdin have to be read
before sending data to the server. However, main.py doesn't close stdin
of the launched process before launching another process (in particular
when running svnadmin dump repos1 | svnadmin load repos2 commands). As a
result our tests were entering a deadlock. Suggested patch doesn't
change anything in tests behavior with native Subversion - it just
closes stdin of the launched process as soon as no more data is about to
be sent to the process stdin.

Another modification included into this patch is setting
SVN_CURRENT_TEST environment variable before running certain test. This
allows us to track what test is currently running when the whole test
suite is launched (i.e. "./copy.py" without specifying exact test number
to run).

2. copy_tests.py patch

Copy 12 test expects "sleep_for_timestamp" behavior to be enabled (that
is disabled by default for tests). As a result sometimes copy 12 pass
and sometimes not. Patch enables sleep_for_timestamp for copy 12 test.

Thanks!

-- 
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!