summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-04-15 14:01:54 -0700
committerCarl Worth <cworth@cworth.org>2010-04-15 14:13:12 -0700
commit9c0ae2e73e9cf705411ec26bf999a172d4e126bf (patch)
tree1af59179898b64ee071450c93a7877f90de41b16
parent3846c1d12c2445bc2a4d118682eb335ee90dd92e (diff)
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.
-rwxr-xr-xtest/notmuch-test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/notmuch-test b/test/notmuch-test
index e74e6e1..74509bc 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -94,7 +94,7 @@ generate_message ()
fi
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
if [ -z "${template[from]}" ]; then
@@ -106,7 +106,7 @@ generate_message ()
fi
if [ -z "${template[subject]}" ]; then
- template[subject]="Test message ${gen_msg_filename}"
+ template[subject]="Test message #${gen_msg_cnt}"
fi
if [ -z "${template[date]}" ]; then