]> git.notmuchmail.org Git - notmuch/commitdiff
test: Use small Python script for JSON normalization instead of json.tool
authorVladimir Panteleev <notmuch@thecybershadow.net>
Wed, 16 Aug 2017 16:31:27 +0000 (16:31 +0000)
committerDavid Bremner <david@tethera.net>
Wed, 23 Aug 2017 11:07:45 +0000 (08:07 -0300)
json.tool does not sort or otherwise normalize the order of JSON keys
in its output, which can result in test failures on some test systems.

Instead, use a one-line Python script passed to the interpreter
directly on its command line. Use sort_keys=True for json.dump to
ensure the key order is normalized. The script works with both Python
2 and 3.

* test/test-lib.sh: Update test_expect_equal_json.


No differences found