[PATCH 08/23] support splitting mail from database location.

Subject: [PATCH 08/23] support splitting mail from database location.

Date: Sun, 7 Feb 2021 20:40:54 -0400

To: notmuch@notmuchmail.org

Cc: David Bremner

From: David Bremner


Introduce a new configuration value for the mail root, and use it in
preference to the database.path (which previously implied the mail was
also in this location.

Multiple changes to the CLI and third party clients will be needed to
work in this split configuration.
---
 test/T055-path-config.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 54c337ef..1da0e9fe 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -27,10 +27,11 @@ split_config () {
     DATABASE_PATH=$dir
 }
 
-add_email_corpus
+
 
 for config in traditional split+prefix; do
-    backup_database
+    # start each set of tests with a known set of messages
+    add_email_corpus
 
     case $config in
 	traditional)
@@ -54,7 +55,6 @@ for config in traditional split+prefix; do
     test_expect_equal "$output" '52'
 
     restore_config
-    restore_database
 done
 
 test_done
-- 
2.30.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: