]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - test/T050-new.sh
test: cope with glass backend file naming variations
[notmuch.git] / test / T050-new.sh
index 93a6fa94ae7cc9c1377194563f7b6ae8d24730ae..f38e626354f2b573e448c3c5af1c4ff5d4a751a2 100755 (executable)
@@ -284,9 +284,9 @@ notmuch config set new.tags $OLDCONFIG
 
 
 test_begin_subtest "Xapian exception: read only files"
-chmod u-w  ${MAIL_DIR}/.notmuch/xapian/*.DB
+chmod u-w  ${MAIL_DIR}/.notmuch/xapian/*.${db_ending}
 output=$(NOTMUCH_NEW --debug 2>&1 | sed 's/: .*$//' )
-chmod u+w  ${MAIL_DIR}/.notmuch/xapian/*.DB
+chmod u+w  ${MAIL_DIR}/.notmuch/xapian/*.${db_ending}
 test_expect_equal "$output" "A Xapian exception occurred opening database"
 
 test_done