X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT590-thread-breakage.sh;h=aeb82cf4e3f300b10dfc80b9333fc18f433ce6ac;hp=38abc2113c269cc328417312629789054b2d863d;hb=c61e22d5cb9a7e5b03f9fcdb9911b4b4a641af2b;hpb=85df8b3915159fa94b7c1c32cb54eda8bd92e0e0 diff --git a/test/T590-thread-breakage.sh b/test/T590-thread-breakage.sh index 38abc211..aeb82cf4 100755 --- a/test/T590-thread-breakage.sh +++ b/test/T590-thread-breakage.sh @@ -19,7 +19,7 @@ test_description='thread breakage during reindexing' # works properly and attempted fixes to threading issues do not break # the expected contents of the index. -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 message_a() { mkdir -p ${MAIL_DIR}/cur @@ -66,7 +66,7 @@ test_thread_count() { test_ghost_count() { test_begin_subtest "${2:-Expecting $1 ghosts(s)}" - ghosts=$(../ghost-report ${MAIL_DIR}/.notmuch/xapian) + ghosts=$($NOTMUCH_BUILDDIR/test/ghost-report ${MAIL_DIR}/.notmuch/xapian) test_expect_equal "$ghosts" "$1" } @@ -111,7 +111,7 @@ test_content_count banana 0 test_begin_subtest 'No ghosts should remain after deletion of second message' # this is known to fail; we are leaking ghost messages deliberately test_subtest_known_broken -ghosts=$(../ghost-report ${MAIL_DIR}/.notmuch/xapian) +ghosts=$($NOTMUCH_BUILDDIR/test/ghost-report ${MAIL_DIR}/.notmuch/xapian) test_expect_equal "$ghosts" "0" rm -f ${MAIL_DIR}/cur/a