Author: jcorvel
Date: Thu Jun 14 12:20:06 2012
New Revision: 1350208
URL: http://svn.apache.org/viewvc?rev=1350208&view=rev
Log:
Fix prop_tests.py 12 on my oldish Windows XP, by tweaking the
cmd_alternative for the generated hook scripts.
* subversion/tests/cmdline/svntest/actions.py
(): When invoking main.create_python_hook_script, use "@exit N" instead
of "@exit /b N" when setting the cmd_alternative, to make sure these
hooks also work (i.e. exit with the correct exit code) with older cmd
interpreters.
Modified:
subversion/trunk/subversion/tests/cmdline/svntest/actions.py
Modified: subversion/trunk/subversion/tests/cmdline/svntest/actions.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/actions.py?rev=1350208&r1=1350207&r2=1350208&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/actions.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/actions.py Thu Jun 14
12:20:06 2012
@@ -1869,7 +1869,7 @@ def enable_revprop_changes(repo_dir):
hook_path = main.get_pre_revprop_change_hook_path(repo_dir)
main.create_python_hook_script(hook_path, 'import sys; sys.exit(0)',
- cmd_alternative='@exit /b 0')
+ cmd_alternative='@exit 0')
def disable_revprop_changes(repo_dir):
"""Disable revprop changes in the repository at REPO_DIR by creating a
@@ -1884,7 +1884,7 @@ def disable_revprop_changes(repo_dir):
'sys.exit(1)\n',
cmd_alternative=
'@echo pre-revprop-change %* 1>&2\n'
- '@exit /b 1\n')
+ '@exit 1\n')
def create_failing_post_commit_hook(repo_dir):
"""Create a post-commit hook script in the repository at REPO_DIR that always
@@ -1896,7 +1896,7 @@ def create_failing_post_commit_hook(repo
'sys.exit(1)\n',
cmd_alternative=
'@echo Post-commit hook failed 1>&2\n'
- '@exit /b 1\n')
+ '@exit 1\n')
# set_prop can be used for properties with NULL characters which are not
# handled correctly when passed to subprocess.Popen() and values like "*"