From 2b3a219bc981b2facc7c449bdcae7fda735ec0d5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 20 Sep 2010 15:07:26 -0700 Subject: [PATCH] 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. --- test/basic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basic b/test/basic index 88704a17..dada2824 100755 --- a/test/basic +++ b/test/basic @@ -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 -- 2.43.0