MSYS2-packages/subversion/12-fix-svnlook-test.patch
2013-11-07 23:02:43 +04:00

23 lines
1.0 KiB
Diff

Fix svnlook_tests.py, so it sets PATH in the python hook.
From: David Rothenberger <d.rothenberger@entomo.com>
---
subversion/tests/cmdline/svnlook_tests.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/subversion/tests/cmdline/svnlook_tests.py b/subversion/tests/cmdline/svnlook_tests.py
index f7c620b..027251c 100755
--- a/subversion/tests/cmdline/svnlook_tests.py
+++ b/subversion/tests/cmdline/svnlook_tests.py
@@ -649,7 +649,7 @@ svnlook_bin=%s
fp = open(os.path.join(sys.argv[1], 'hooks.log'), 'wb')
def output_command(fp, cmd, opt):
command = [svnlook_bin, cmd, '-t', sys.argv[2], sys.argv[1]] + opt
- process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False, bufsize=-1)
+ process = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False, bufsize=-1, env={'PATH': '/usr/bin'})
(output, errors) = process.communicate()
status = process.returncode
fp.write(output)