mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: use test_expect_equal for PATH test, update message
- The old test was quite impossible to debug; the new one shows the difference between the two directories, if any. - "repository" doesn't make sense for out of tree builds. Or tarball builds, for that matter.
This commit is contained in:
parent
dd24fdd33a
commit
320f86c30a
1 changed files with 4 additions and 3 deletions
|
@ -86,8 +86,9 @@ test_expect_success \
|
||||||
'NOTMUCH_CONFIG is set and points to an existing file' \
|
'NOTMUCH_CONFIG is set and points to an existing file' \
|
||||||
'test -f "${NOTMUCH_CONFIG}"'
|
'test -f "${NOTMUCH_CONFIG}"'
|
||||||
|
|
||||||
test_expect_success \
|
test_begin_subtest 'PATH is set to build directory'
|
||||||
'PATH is set to this repository' \
|
test_expect_equal \
|
||||||
'test "`echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,'`" = "`dirname ${TEST_DIRECTORY}`"'
|
"$(dirname ${TEST_DIRECTORY})" \
|
||||||
|
"$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')"
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue