X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT560-lib-error.sh;h=59a479c849e998f16c7a08abd5d7b43ec83169a4;hb=557965b8fae3d7923cee0fb8d9b298173e73a264;hp=b1e77aa0ee3878506d5136050376ed2d2c6f4a75;hpb=32fd74b7aa9c24ec77f8c59d09f89e0535bf64cd;p=notmuch diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index b1e77aa0..59a479c8 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -1,17 +1,7 @@ #!/usr/bin/env bash test_description="error reporting for library" -. ./test-lib.sh - -backup_database () { - rm -rf notmuch-dir-backup - cp -pR ${MAIL_DIR}/.notmuch notmuch-dir-backup -} -restore_database () { - rm -rf ${MAIL_DIR}/.notmuch - cp -pR notmuch-dir-backup ${MAIL_DIR}/.notmuch -} - +. ./test-lib.sh || exit 1 add_email_corpus @@ -193,7 +183,7 @@ int main (int argc, char** argv) EOF cat <<'EOF' >EXPECTED == stdout == -Path already exists: CWD/mail +Path already exists: MAIL_DIR == stderr == EOF