Skip to content

Commit 9e3d58a

Browse files
committed
Merge branch 'jc/test-portability' into maint
* jc/test-portability: t9020: use configured Python to run the test helper t3600: Avoid "cp -a", which is a GNUism
2 parents 8da3933 + 5a02966 commit 9e3d58a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

t/t3600-rm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ test_expect_success 'rm of a conflicted populated submodule with a .git director
474474
git submodule update &&
475475
(cd submod &&
476476
rm .git &&
477-
cp -a ../.git/modules/sub .git &&
477+
cp -R ../.git/modules/sub .git &&
478478
GIT_WORK_TREE=. git config --unset core.worktree
479479
) &&
480480
test_must_fail git merge conflict2 &&
@@ -508,7 +508,7 @@ test_expect_success 'rm of a populated submodule with a .git directory fails eve
508508
git submodule update &&
509509
(cd submod &&
510510
rm .git &&
511-
cp -a ../.git/modules/sub .git &&
511+
cp -R ../.git/modules/sub .git &&
512512
GIT_WORK_TREE=. git config --unset core.worktree
513513
) &&
514514
test_must_fail git rm submod &&
@@ -606,7 +606,7 @@ test_expect_success 'rm of a populated nested submodule with a nested .git direc
606606
git submodule update --recursive &&
607607
(cd submod/subsubmod &&
608608
rm .git &&
609-
cp -a ../../.git/modules/sub/modules/sub .git &&
609+
cp -R ../../.git/modules/sub/modules/sub .git &&
610610
GIT_WORK_TREE=. git config --unset core.worktree
611611
) &&
612612
test_must_fail git rm submod &&

t/t9020-remote-svn.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ then
1212
test_done
1313
fi
1414

15-
# We override svnrdump by placing a symlink to the svnrdump-emulator in .
16-
export PATH="$HOME:$PATH"
17-
ln -sf $GIT_BUILD_DIR/contrib/svn-fe/svnrdump_sim.py "$HOME/svnrdump"
15+
# Override svnrdump with our simulator
16+
PATH="$HOME:$PATH"
17+
export PATH PYTHON_PATH GIT_BUILD_DIR
18+
19+
write_script "$HOME/svnrdump" <<\EOF
20+
exec "$PYTHON_PATH" "$GIT_BUILD_DIR/contrib/svn-fe/svnrdump_sim.py" "$@"
21+
EOF
1822

1923
init_git () {
2024
rm -fr .git &&

0 commit comments

Comments
 (0)