From: David Bremner Date: Sun, 8 Dec 2013 08:39:05 +0000 (+0800) Subject: test: pass expected output through json_sanitize in 2 places X-Git-Tag: 0.17~11 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=20f78709faae8fb36c6ebbf81ecfc856a5dcd3c7;hp=bb390f89a1599f4767fbf7fc7cb1f01aba22b9ae test: pass expected output through json_sanitize in 2 places This makes the tests more robust against changes in the sanitization rules. --- diff --git a/test/missing-headers b/test/missing-headers index 43e861bc..cb38301c 100755 --- a/test/missing-headers +++ b/test/missing-headers @@ -95,7 +95,7 @@ Body test_begin_subtest "Show: json" output=$(notmuch show --format=json '*' | notmuch_json_show_sanitize) -test_expect_equal_json "$output" ' +expected=$(notmuch_json_show_sanitize <OUTPUT -cat <EXPECTED +notmuch_json_show_sanitize <EXPECTED {"reply-headers": {"Subject": "Re: Multipart message", "From": "Notmuch Test Suite ", "To": "Carl Worth , cworth@cworth.org",