mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
test-lib: Add dummy subject to force empty subject
At the moment, the test-lib fills in any missing headers. This makes it impossible to test our handling of empty subjects. This will allow us to use a special dummy subject -- `@FORCE_EMPTY` -- to force the subject to remain empty.
This commit is contained in:
parent
67e368ac7b
commit
c0c007dd7f
1 changed files with 2 additions and 0 deletions
|
@ -368,6 +368,8 @@ generate_message ()
|
|||
else
|
||||
template[subject]="Test message #${gen_msg_cnt}"
|
||||
fi
|
||||
elif [ "${template[subject]}" = "@FORCE_EMPTY" ]; then
|
||||
template[subject]=""
|
||||
fi
|
||||
|
||||
if [ -z "${template[date]}" ]; then
|
||||
|
|
Loading…
Reference in a new issue