]> git.cworth.org Git - notmuch/commitdiff
test: Fix PATH-checking test to work with --valgrind
authorCarl Worth <cworth@cworth.org>
Mon, 20 Sep 2010 22:07:26 +0000 (15:07 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 20 Sep 2010 22:07:26 +0000 (15:07 -0700)
The --valgrind option munges the PATH variable, so un-munge it before
testing that we have PATH pointing to the source directory.

test/basic

index 88704a17c6e930f04757d49f7bb08b894314fef8..dada2824bc40b2a7027c9a9502230c50d4606e4d 100755 (executable)
@@ -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