From 1c801365543ad23c8ff19cda91b8ac53007e7c54 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Sat, 8 Nov 2014 14:29:14 -0800 Subject: [PATCH] srctest: Set $PATH to include the current directory Keeps the version of 'src' being tested as that of the repository head. --- srctest | 4 ++++ 1 file changed, 4 insertions(+) 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() { -- 2.43.0