]> thyrsus.com Git - src.git/commitdiff
srctest: Set $PATH to include the current directory
authorMike Swanson <mikeonthecomputer@gmail.com>
Sat, 8 Nov 2014 22:29:14 +0000 (14:29 -0800)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 8 Nov 2014 22:57:41 +0000 (17:57 -0500)
Keeps the version of 'src' being tested as that of the repository head.

srctest

diff --git a/srctest b/srctest
index 49a32afa84b521ebd44ce33b3dd40c46fadacd27..dc8c2197fec645b21121acf3862804a1cda0efe4 100755 (executable)
--- 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() {