X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT020-compact.sh;h=58cd2ba74cefd7f9a1b6fa6808be7fd77c424a1c;hb=5f2832ae2171714dfef6d0d3302f473526480157;hp=1fecd071e77e07faaf6348beb4df82f82fc7dd30;hpb=d0cd253b37646d9364d046e1d3edb022a58c105a;p=notmuch diff --git a/test/T020-compact.sh b/test/T020-compact.sh index 1fecd071..58cd2ba7 100755 --- a/test/T020-compact.sh +++ b/test/T020-compact.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description='"notmuch compact"' -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 add_message '[subject]=One' add_message '[subject]=Two' @@ -16,7 +16,8 @@ if [ $NOTMUCH_HAVE_XAPIAN_COMPACT -eq 0 ]; then test_expect_equal "$output" "notmuch was compiled against a xapian version lacking compaction support. Compaction failed: Unsupported operation" - test_expect_code 1 "Compact unsupported: status code" "notmuch compact" + test_begin_subtest "Compact unsupported: status code" + test_expect_code 1 "notmuch compact" test_done fi