test: Fix PATH-checking test to work with --valgrind

The --valgrind option munges the PATH variable, so un-munge it before
testing that we have PATH pointing to the source directory.
This commit is contained in:
Carl Worth 2010-09-20 15:07:26 -07:00
parent 029830c1f1
commit 2b3a219bc9

View file

@ -74,6 +74,6 @@ test_expect_success \
test_expect_success \
'PATH is set to this repository' \
'test "`echo $PATH|cut -f1 -d:`" = "`dirname ${TEST_DIRECTORY}`"'
'test "`echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,'`" = "`dirname ${TEST_DIRECTORY}`"'
test_done