[v2 2/3] test-lib: Add dummy subject to force empty subject
Jesse Rosenthal
jrosenthal at jhu.edu
Wed Oct 29 13:51:44 PDT 2014
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.
---
test/test-lib.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/test-lib.sh b/test/test-lib.sh
index 53db9ca..6057238 100644
--- a/test/test-lib.sh
+++ b/test/test-lib.sh
@@ -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
--
2.1.2
More information about the notmuch
mailing list