]> git.notmuchmail.org Git - notmuch/blobdiff - test/T530-upgrade.sh
notmuch-new: backup tags before database upgrade
[notmuch] / test / T530-upgrade.sh
index 67bbf319a1b7b271212fa6e0d7b74794d293ac07..d46e3d1703e1f597b835b2d85be154240dbe235d 100755 (executable)
@@ -26,9 +26,11 @@ output=$(notmuch search path:foo)
 test_expect_equal "$output" ""
 
 test_begin_subtest "database upgrade from format version 1"
 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.
 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."
 
 Your notmuch database has now been upgraded to database format version 2.
 No new mail."