Re: [PATCH v7 4/7] git-remote-mediawiki: Update tests to run with the new bin-wrapper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



benoit.person@xxxxxxxxxx writes:

> --- a/contrib/mw-to-git/t/test-gitmw-lib.sh
> +++ b/contrib/mw-to-git/t/test-gitmw-lib.sh
> @@ -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

Cool!

I like the way adding a new feature has positive side effects on the
rest of the code.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]