]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephtool/test.sh: handle non-escaped-/ json 14130/head
authorSage Weil <sage@redhat.com>
Sat, 8 Apr 2017 18:19:00 +0000 (14:19 -0400)
committerSage Weil <sage@redhat.com>
Sat, 8 Apr 2017 18:19:00 +0000 (14:19 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephtool/test.sh

index a5066fb0d7decaaddab970b5a0e0821ce0d1c34e..e2cebea31223df6391d18b885d23c0e831552419 100755 (executable)
@@ -1059,11 +1059,9 @@ function test_mon_osd()
   # osd blacklist
   #
   bl=192.168.0.1:0/1000
-  # Escaped form which may appear in JSON output
-  bl_json=192.168.0.1:0\\\\/1000
   ceph osd blacklist add $bl
   ceph osd blacklist ls | grep $bl
-  ceph osd blacklist ls --format=json-pretty | grep $bl_json
+  ceph osd blacklist ls --format=json-pretty  | sed 's/\\\//\//' | grep $bl
   ceph osd dump --format=json-pretty | grep $bl
   ceph osd dump | grep "^blacklist $bl"
   ceph osd blacklist rm $bl