From: Mike Swanson Date: Sat, 8 Nov 2014 22:29:14 +0000 (-0800) Subject: srctest: Set $PATH to include the current directory X-Git-Tag: 0.3~25 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=1c801365543ad23c8ff19cda91b8ac53007e7c54;p=src.git srctest: Set $PATH to include the current directory Keeps the version of 'src' being tested as that of the repository head. --- diff --git a/srctest b/srctest index 49a32af..dc8c219 100755 --- a/srctest +++ b/srctest @@ -10,6 +10,10 @@ umask 0077 # -u so that `src init` will work. SANDBOX=$(mktemp -u /tmp/.src_XXXXXXXX) +# Set the PATH to include the current directory, so the repository +# head version of src can always be tested. +PATH="$(pwd)":$PATH + trap "rm -fr testfile* testrev* newname* $SANDBOX" 0 1 2 15 check() {