mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-30 22:54:11 +01:00
test: fix compact backup / restore test
It was looking in completely the wrong place for the backup and the (test) xapian database. Unfortunately test_begin_subtest hides the relevant errors.
This commit is contained in:
parent
fd733a4f5c
commit
425e73e146
1 changed files with 4 additions and 3 deletions
|
@ -19,10 +19,11 @@ thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
|
||||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag2 unread)
|
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag2 unread)
|
||||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Three (inbox tag3 unread)"
|
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Three (inbox tag3 unread)"
|
||||||
|
|
||||||
test_begin_subtest "Restoring backup"
|
test_expect_success 'Restoring Backup' \
|
||||||
rm -Rf ${TEST_TMPDIR}/mail/xapian
|
'rm -Rf ${MAIL_DIR}/.notmuch/xapian &&
|
||||||
mv ${TEST_TMPDIR}/mail/xapian.old ${TEST_TMPDIR}/mail/xapian
|
mv ${MAIL_DIR}/xapian.old ${MAIL_DIR}/.notmuch/xapian'
|
||||||
|
|
||||||
|
test_begin_subtest "Checking restored backup"
|
||||||
output=$(notmuch search \* | notmuch_search_sanitize)
|
output=$(notmuch search \* | notmuch_search_sanitize)
|
||||||
test_expect_equal "$output" "\
|
test_expect_equal "$output" "\
|
||||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
|
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
|
||||||
|
|
Loading…
Reference in a new issue