diff options
author | David Bremner <david@tethera.net> | 2014-04-01 11:06:05 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-04-12 07:59:44 -0300 |
commit | a7eaa4d84a909275fe0c089f8dbf346ebcdc69c6 (patch) | |
tree | 0d0f6684e03fb3bdfd551cceae902947033046a0 /test | |
parent | 4c62d9366a389b7ddca796009d1dfe6a885cfde0 (diff) |
notmuch-new: backup tags before database upgrade
All we do here is calculate the backup filename, and call the existing
dump routine.
Also take the opportunity to add a message about being safe to
interrupt.
Diffstat (limited to 'test')
-rwxr-xr-x | test/T530-upgrade.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh index 67bbf319..d46e3d17 100755 --- a/test/T530-upgrade.sh +++ b/test/T530-upgrade.sh @@ -26,9 +26,11 @@ output=$(notmuch search path:foo) test_expect_equal "$output" "" test_begin_subtest "database upgrade from format version 1" -output=$(notmuch new) +output=$(notmuch new | sed -e 's/^Backing up tags to .*$/Backing up tags to FILENAME/') test_expect_equal "$output" "\ Welcome to a new version of notmuch! Your database will now be upgraded. +This process is safe to interrupt. +Backing up tags to FILENAME Your notmuch database has now been upgraded to database format version 2. No new mail." |