From: Carl Worth Date: Fri, 4 Jun 2010 19:38:11 +0000 (-0700) Subject: test suite: Generate message filenames from count, not Message-Id. X-Git-Tag: 0.4~118 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77ab73834325f2b2a8870204af60e116d4209f12;p=notmuch.git test suite: Generate message filenames from count, not Message-Id. We're about to add a test with an excessively long message-id, (512 characters or so). This exceeds filename length limits, so just always the simple counter to generate the filenames, (which we were doing for messages with non-custom IDs anyway). --- diff --git a/test/notmuch-test b/test/notmuch-test index cddaafb8..6f3fe0a9 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -85,12 +85,12 @@ generate_message () local -A template="($@)" local additional_headers + gen_msg_cnt=$((gen_msg_cnt + 1)) + gen_msg_name=msg-$(printf "%03d" $gen_msg_cnt) + if [ -z "${template[id]}" ]; then - gen_msg_cnt=$((gen_msg_cnt + 1)) - gen_msg_name=msg-$(printf "%03d" $gen_msg_cnt) gen_msg_id="${gen_msg_name}@notmuch-test-suite" else - gen_msg_name="msg-${template[id]}" gen_msg_id="${template[id]}" fi