X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test;h=676b66ec76b822de914a34bd0e66bef2c6a4f35d;hb=01f03cf098c01116f68354b3bb8bd3eb8bcb581b;hp=f0c0aad6ea6cb4ecfc723198d77b27fc1931c092;hpb=2a1a4f0551edda081d9d03e25b2f195761502c2e;p=notmuch diff --git a/test/notmuch-test b/test/notmuch-test index f0c0aad6..676b66ec 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -94,7 +94,7 @@ generate_message () fi if [ -z "${template[body]}" ]; then - template[body]="This is just test message (#${gen_msg_cnt})" + template[body]="This is just a test message (#${gen_msg_cnt})" fi if [ -z "${template[from]}" ]; then @@ -168,8 +168,10 @@ pass_if_equal () echo " PASS" else echo " FAIL" - echo " Expected output: $expected" - echo " Actual output: $output" + testname=test-$(printf "%03d" $tests) + echo "$expected" > $testname.expected + echo "$output" > $testname.output + diff -u $testname.expected $testname.output || true test_failures=$((test_failures + 1)) fi }