From a7eaa4d84a909275fe0c089f8dbf346ebcdc69c6 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 1 Apr 2014 11:06:05 -0300 Subject: 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. --- test/T530-upgrade.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') 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." -- cgit v1.2.3