X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT240-dump-restore.sh;h=da7502c99a1ddcca4aa3a6aa5f80b8821d3f3395;hb=53f27aaf73192babf831e907ade71dc16f6880be;hp=75fb0b404bbebbf134cc4fe7c040016817245910;hpb=523d2b50fcaae90cbe09975c1f1bc652ff521ec6;p=notmuch diff --git a/test/T240-dump-restore.sh b/test/T240-dump-restore.sh index 75fb0b40..da7502c9 100755 --- a/test/T240-dump-restore.sh +++ b/test/T240-dump-restore.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description="\"notmuch dump\" and \"notmuch restore\"" -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 NOTMUCH_NEW > /dev/null test_begin_subtest "dump header" @@ -322,6 +322,7 @@ EOF test_expect_equal_file EXPECTED OUTPUT +backup_database test_begin_subtest 'roundtripping random message-ids and tags' ${TEST_DIRECTORY}/random-corpus --config-path=${NOTMUCH_CONFIG} \ @@ -338,7 +339,7 @@ test_begin_subtest 'roundtripping random message-ids and tags' sort > OUTPUT.$test_count test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count +restore_database test_done -# Note the database is "poisoned" for sup format at this point.