From 77ab73834325f2b2a8870204af60e116d4209f12 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 4 Jun 2010 12:38:11 -0700 Subject: [PATCH] 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). --- test/notmuch-test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.26.2