mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 10:28:09 +01:00
test: test explicit configuration of backup directory
Including the relative path that was broken until a recent commit.
This commit is contained in:
parent
891b950219
commit
8bf3311084
1 changed files with 19 additions and 0 deletions
|
@ -54,4 +54,23 @@ for key in 'from/subject/message-ID in database' \
|
|||
restore_database
|
||||
done
|
||||
|
||||
test_begin_subtest "upgrade with configured backup dir"
|
||||
notmuch config set database.backup_dir ${HOME}/backups
|
||||
delete_feature 'modification tracking'
|
||||
notmuch new | grep Backing | notmuch_dir_sanitize | sed 's/dump-[0-9T]*/dump-XXX/' > OUTPUT
|
||||
cat <<EOF > EXPECTED
|
||||
Backing up tags to CWD/home/backups/dump-XXX.gz...
|
||||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_begin_subtest "upgrade with relative configured backup dir"
|
||||
notmuch config set database.backup_dir ${HOME}/backups
|
||||
delete_feature 'modification tracking'
|
||||
notmuch new | grep Backing | notmuch_dir_sanitize | sed 's/dump-[0-9T]*/dump-XXX/' > OUTPUT
|
||||
cat <<EOF > EXPECTED
|
||||
Backing up tags to CWD/home/backups/dump-XXX.gz...
|
||||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue