X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2Ftest-lib-common.sh;h=ebbf4cdfa6fd2e727f78d651fdf31dcb8c3ead7d;hb=2d036dbc3b6e48b12ab3e8aa0cbe713d2ef96854;hp=2f7950ac75b7b6c61777560bb933d847b9a7e3f7;hpb=f7130468d27c4f37d45e6aa60baacfc3329ccff4;p=notmuch diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh index 2f7950ac..ebbf4cdf 100644 --- a/test/test-lib-common.sh +++ b/test/test-lib-common.sh @@ -105,8 +105,7 @@ fi gen_msg_cnt=0 gen_msg_filename="" gen_msg_id="" -generate_message () -{ +generate_message () { # This is our (bash-specific) magic for doing named parameters local -A template="($@)" local additional_headers @@ -225,8 +224,7 @@ EOF # # All of the arguments and return values supported by generate_message # are also supported here, so see that function for details. -add_message () -{ +add_message () { generate_message "$@" && notmuch new > /dev/null }