Skip to content

Commit c7956f9

Browse files
Benoit Persongitster
authored andcommitted
git-remote-mediawiki: update tests to run with the new bin-wrapper
Until now, if git-remote-mediawiki was not installed, the test suite copied it to the toplevel directory. This solution pollutes the directory with untracked files. Plus, we would need to copy the new git-mw.perl file to test it too. Signed-off-by: Benoit Person <[email protected]> Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8a7c215 commit c7956f9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

contrib/mw-to-git/t/test-gitmw-lib.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@ test_check_precond () {
6262
test_done
6363
fi
6464

65-
if [ ! -f "$GIT_BUILD_DIR"/git-remote-mediawiki ];
66-
then
67-
echo "No remote mediawiki for git found. Copying it in git"
68-
echo "cp $GIT_BUILD_DIR/contrib/mw-to-git/git-remote-mediawiki $GIT_BUILD_DIR/"
69-
ln -s "$GIT_BUILD_DIR"/contrib/mw-to-git/git-remote-mediawiki "$GIT_BUILD_DIR"
70-
fi
65+
GIT_EXEC_PATH=$(cd "$(dirname "$0")" && cd "../.." && pwd)
66+
PATH="$GIT_EXEC_PATH"'/bin-wrapper:'"$PATH"
7167

7268
if [ ! -d "$WIKI_DIR_INST/$WIKI_DIR_NAME" ];
7369
then

0 commit comments

Comments
 (0)