]> git.notmuchmail.org Git - notmuch/blobdiff - test/T070-insert.sh
test: wrap 'wc -l' results in arithmetic evaluation to strip whitespace
[notmuch] / test / T070-insert.sh
index 7e04a23d93e2b0817f8c847bc7840bc0dbfb1b2a..3dd76737c53017a8e0e9665c1b4016da7a4defd7 100755 (executable)
@@ -60,7 +60,7 @@ test_expect_equal_json "$output" "$expected"
 
 test_begin_subtest "Insert duplicate message"
 notmuch insert +duptag -unread < "$gen_msg_filename"
-output=$(notmuch search --output=files "subject:insert-subject" | wc -l)
+output=$((`notmuch search --output=files "subject:insert-subject" | wc -l`))
 test_expect_equal "$output" 2
 
 test_begin_subtest "Duplicate message does not change tags"