From b2b7610d1a9703c44c18fa4982f798a152533dc0 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 19 Dec 2019 19:02:18 +0100 Subject: [PATCH] qa: krbd_exclusive_option.sh: fixup for json.tool ordering change 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 --- qa/workunits/rbd/krbd_exclusive_option.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/workunits/rbd/krbd_exclusive_option.sh b/qa/workunits/rbd/krbd_exclusive_option.sh index 1ddd089d410f8..09edc13865438 100755 --- a/qa/workunits/rbd/krbd_exclusive_option.sh +++ b/qa/workunits/rbd/krbd_exclusive_option.sh @@ -24,10 +24,10 @@ function assert_locked() { 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 <