]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Sort pool list because the order isn't guaranteed from "balancer pool ls" 32247/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 20 Dec 2019 21:46:34 +0000 (13:46 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 7 Jan 2020 05:35:19 +0000 (21:35 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/mgr/balancer.sh

index 984b6504ba008003c802e67ec3990404212fcefa..7e87cbf4a5f369d8cc1bf8fd1eb2d9b882f26b8c 100755 (executable)
@@ -67,9 +67,9 @@ function TEST_balancer() {
     ceph balancer pool add $TEST_POOL1 || return 1
     ceph balancer pool add $TEST_POOL2 || return 1
     ceph balancer pool ls || return 1
-    eval POOL=$(ceph balancer pool ls | jq '.[0]')
+    eval POOL=$(ceph balancer pool ls | jq 'sort | .[0]')
     test "$POOL" = "$TEST_POOL1" || return 1
-    eval POOL=$(ceph balancer pool ls | jq '.[1]')
+    eval POOL=$(ceph balancer pool ls | jq 'sort | .[1]')
     test "$POOL" = "$TEST_POOL2" || return 1
     ceph balancer pool rm $TEST_POOL1 || return 1
     ceph balancer pool rm $TEST_POOL2 || return 1