t9020: use configured Python to run the test helper
The test helper svnrdump_sim.py is used as "svnrdump" during the execution of this test, but the arrangement was not optimal: - it relied on symbolic links; - unportable "export VAR=VAL" was used; - GIT_BUILD_DIR variable was not quoted correctly; - it assumed that the Python interpreter is in /usr/bin/ and called "python" (i.e. not "python2.7" etc.) Rework this by writing a small shell script that spawns the right Python interpreter, using the right quoting. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2d3ac9ad67
commit
5a02966685
@ -12,9 +12,13 @@ then
|
|||||||
test_done
|
test_done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# We override svnrdump by placing a symlink to the svnrdump-emulator in .
|
# Override svnrdump with our simulator
|
||||||
export PATH="$HOME:$PATH"
|
PATH="$HOME:$PATH"
|
||||||
ln -sf $GIT_BUILD_DIR/contrib/svn-fe/svnrdump_sim.py "$HOME/svnrdump"
|
export PATH PYTHON_PATH GIT_BUILD_DIR
|
||||||
|
|
||||||
|
write_script "$HOME/svnrdump" <<\EOF
|
||||||
|
exec "$PYTHON_PATH" "$GIT_BUILD_DIR/contrib/svn-fe/svnrdump_sim.py" "$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
init_git () {
|
init_git () {
|
||||||
rm -fr .git &&
|
rm -fr .git &&
|
||||||
|
Loading…
Reference in New Issue
Block a user