In Python 3.5 json.tool was changed to produce unsorted output and
--sort-keys option was added to compensate. This wasn't caught by
4fe245cc2f2d ("qa: update krbd tests for python3") because it raced
with
50933b863a1d ("qa: krbd_exclusive_option.sh: update for recent
kernel changes").
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
local actual
actual="$(rados -p rbd --format=json lock info rbd_header.$IMAGE_ID rbd_lock |
- python3 -m json.tool)"
+ python3 -m json.tool --sort-keys)"
local expected
- expected="$(cat <<EOF | python3 -m json.tool
+ expected="$(cat <<EOF | python3 -m json.tool --sort-keys
{
"lockers": [
{