]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ZTS: zfs_program_json
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Dec 2019 20:12:41 +0000 (12:12 -0800)
committerGitHub <noreply@github.com>
Fri, 27 Dec 2019 20:12:41 +0000 (12:12 -0800)
commita6f6ef8bda9d012f3217acd2e94cf0dd445ae5c1
tree45ffb9ef5eee9e805a9dc7a8b13c91565883fac6
parent590ff61a5520214c9ad7101c55d87adaa580e15e
ZTS: zfs_program_json

As of Python 3.5 the default behavior of json.tool was changed to
preserve the input order rather than lexical order.  The test case
expects the output to be sorted so apply the --sort-keys option
to the json.tool command when using Python 3.5 and the option is
supported.

    https://docs.python.org/3/library/json.html#module-json.tool

Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9774
tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh