mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
test: Remove test-message filenames from generated messages
The filenames aren't predictable (including the current directory) nor stable from one run to the next (including the PID). This makes it hard to predict the output from a search command that returns such a message (such as "*"). The original goal was simply to ensure that each generated message was distinguishable somehow. So just use the message counter instead.
This commit is contained in:
parent
3846c1d12c
commit
9c0ae2e73e
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ generate_message ()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${template[body]}" ]; then
|
if [ -z "${template[body]}" ]; then
|
||||||
template[body]="This is just a test message at ${gen_msg_filename}"
|
template[body]="This is just test message (#${gen_msg_cnt})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${template[from]}" ]; then
|
if [ -z "${template[from]}" ]; then
|
||||||
|
@ -106,7 +106,7 @@ generate_message ()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${template[subject]}" ]; then
|
if [ -z "${template[subject]}" ]; then
|
||||||
template[subject]="Test message ${gen_msg_filename}"
|
template[subject]="Test message #${gen_msg_cnt}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${template[date]}" ]; then
|
if [ -z "${template[date]}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue