From 20f78709faae8fb36c6ebbf81ecfc856a5dcd3c7 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 8 Dec 2013 16:39:05 +0800 Subject: [PATCH] test: pass expected output through json_sanitize in 2 places This makes the tests more robust against changes in the sanitization rules. --- test/missing-headers | 8 +++++--- test/multipart | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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", -- 2.43.0