From 54e7f1777d0b623e0995c9d5e88ab9b412e470bb Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 3 Nov 2013 14:24:49 +0200 Subject: cli: add compact --backup=DIRECTORY option, don't backup by default It's the user's decision. The recommended way is to do a database dump anyway. Clean up the relevant printfs too. --- test/compact | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/compact b/test/compact index afab5372..ac174cec 100755 --- a/test/compact +++ b/test/compact @@ -10,7 +10,7 @@ notmuch tag +tag1 \* notmuch tag +tag2 subject:Two notmuch tag -tag1 +tag3 subject:Three -test_expect_success "Running compact" "notmuch compact" +test_expect_success "Running compact" "notmuch compact --backup=${TEST_DIRECTORY}/xapian.old" test_begin_subtest "Compact preserves database" output=$(notmuch search \* | notmuch_search_sanitize) @@ -21,7 +21,7 @@ thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Three (inbox tag3 unread)" test_expect_success 'Restoring Backup' \ 'rm -Rf ${MAIL_DIR}/.notmuch/xapian && - mv ${MAIL_DIR}/xapian.old ${MAIL_DIR}/.notmuch/xapian' + mv ${TEST_DIRECTORY}/xapian.old ${MAIL_DIR}/.notmuch/xapian' test_begin_subtest "Checking restored backup" output=$(notmuch search \* | notmuch_search_sanitize) -- cgit v1.2.3