]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: use subtest name for generated message subject by default
[notmuch] / test / test-lib.sh
index 278150677c4a92e8df4a723be693fae108213576..06aaea270e946cb6811ed6e18258781b5d267b8d 100644 (file)
@@ -318,7 +318,11 @@ generate_message ()
     fi
 
     if [ -z "${template[subject]}" ]; then
-       template[subject]="Test message #${gen_msg_cnt}"
+       if [ -n "$test_subtest_name" ]; then
+           template[subject]="$test_subtest_name"
+       else
+           template[subject]="Test message #${gen_msg_cnt}"
+       fi
     fi
 
     if [ -z "${template[date]}" ]; then