From: Carl Worth Date: Mon, 20 Sep 2010 22:07:26 +0000 (-0700) Subject: test: Fix PATH-checking test to work with --valgrind X-Git-Tag: 0.4~84 X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=2b3a219bc981b2facc7c449bdcae7fda735ec0d5;p=notmuch 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. --- 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