diff options
| author | David Bremner <david@tethera.net> | 2016-04-08 22:49:50 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-04-12 20:21:09 -0300 |
| commit | e311aad182326a1dcb0f8512e10b0e0f0faa9e2c (patch) | |
| tree | d6c24d5eef7911598f978e1e07158f16fd2fe0b3 /test/T050-new.sh | |
| parent | deb4e5567c42afe834d83868b9337277256a0d66 (diff) | |
test: cope with glass backend file naming variations
In several places in the test suite we intentionally corrupt the Xapian
database in order to test error handling. This corruption is specific to
the on-disk organization of the database, and that changed with the
glass backend. We use the previously computed default backend to make
the tests adapt to changing names.
Diffstat (limited to 'test/T050-new.sh')
| -rwxr-xr-x | test/T050-new.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/T050-new.sh b/test/T050-new.sh index 93a6fa94..f38e6263 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -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 |
