Skip to content

Commit

Permalink
git-remote-mediawiki: update tests to run with the new bin-wrapper
Browse files Browse the repository at this point in the history
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 <benoit.person@ensimag.fr>
Signed-off-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Benoit Person authored and Junio C Hamano committed Jul 8, 2013
1 parent 8a7c215 commit c7956f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions contrib/mw-to-git/t/test-gitmw-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,8 @@ test_check_precond () {
test_done
fi

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

if [ ! -d "$WIKI_DIR_INST/$WIKI_DIR_NAME" ];
then
Expand Down

0 comments on commit c7956f9

Please sign in to comment.