]> git.notmuchmail.org Git - notmuch/commitdiff
test/new: add known broken test for missing xapian directory.
authorDavid Bremner <david@tethera.net>
Sat, 25 Dec 2021 21:22:55 +0000 (17:22 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 29 Dec 2021 18:11:10 +0000 (14:11 -0400)
`notmuch new' should go ahead and create the xapian database if it is
missing, even in the case where the parent .notmuch (or equivalent)
directory exists.

test/T055-path-config.sh

index 6d9fb40291bf2e1692ade64599f748d1bd8fe5fd..b6858d42e4287086ecf41192debc96cfb00fda81 100755 (executable)
@@ -318,7 +318,15 @@ to=m.header('To')
 print(to)
 EOF
           test_expect_equal_file EXPECTED OUTPUT
-          ;& # fall through
+          ;;
+       *)
+          backup_database
+          test_begin_subtest ".notmuch without xapian/ handled gracefully ($config)"
+          test_subtest_known_broken
+          rm -r $XAPIAN_PATH
+          test_expect_success "notmuch new"
+          restore_database
+          ;;
    esac
 
    case $config in