diff options
| author | David Bremner <david@tethera.net> | 2021-02-27 10:50:33 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-03-27 09:26:14 -0300 |
| commit | ee0e1cfb1748a11f14d7b5381b0fea55faac9567 (patch) | |
| tree | d59ef713f25c549f318edcfe1c7c2c85e8e6764b /test/T040-setup.sh | |
| parent | ecb91d056c1d99373316ccf7aff748bc91e90ef4 (diff) | |
test/setup: check file output instead of notmuch config list
This allows verification of comments added to new / updated config
file.
Diffstat (limited to 'test/T040-setup.sh')
| -rwxr-xr-x | test/T040-setup.sh | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/test/T040-setup.sh b/test/T040-setup.sh index 5eb281d7..daeca3e4 100755 --- a/test/T040-setup.sh +++ b/test/T040-setup.sh @@ -10,7 +10,7 @@ Error: cannot load config file. Try running 'notmuch setup' to create a configuration." test_begin_subtest "Create a new config interactively" -notmuch --config=new-notmuch-config > /dev/null <<EOF +notmuch --config=new-notmuch-config > log.${test_count} <<EOF Test Suite test.suite@example.com another.suite@example.com @@ -20,19 +20,8 @@ foo bar baz EOF -output=$(notmuch --config=new-notmuch-config config list | notmuch_built_with_sanitize) -test_expect_equal "$output" "\ -database.path=/path/to/maildir -user.name=Test Suite -user.primary_email=test.suite@example.com -user.other_email=another.suite@example.com; -new.tags=foo;bar; -new.ignore= -search.exclude_tags=baz; -maildir.synchronize_flags=true -built_with.compact=something -built_with.field_processor=something -built_with.retry_lock=something" +expected_dir=$NOTMUCH_SRCDIR/test/setup.expected-output +test_expect_equal_file ${expected_dir}/config-with-comments new-notmuch-config test_begin_subtest "notmuch with a config but without a database suggests notmuch new" notmuch 2>&1 | notmuch_dir_sanitize > OUTPUT |
