From: Mykola Golub Date: Tue, 28 Apr 2020 10:45:33 +0000 (+0100) Subject: qa/workunits/rbd: fix list-mapped filter in unmap_device X-Git-Tag: v16.1.0~2446^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34787%2Fhead;p=ceph.git qa/workunits/rbd: fix list-mapped filter in unmap_device In recent versions `rbd list-mapped` does not print the white space at the end of the line. Fixes: https://tracker.ceph.com/issues/45305 Signed-off-by: Mykola Golub --- diff --git a/qa/workunits/rbd/rbd-nbd.sh b/qa/workunits/rbd/rbd-nbd.sh index f4fe2481186f6..5475116cdb3db 100755 --- a/qa/workunits/rbd/rbd-nbd.sh +++ b/qa/workunits/rbd/rbd-nbd.sh @@ -106,7 +106,7 @@ unmap_device() for s in 0.5 1 2 4 8 16 32; do sleep ${s} - rbd-nbd list-mapped | expect_false grep "${list_dev} $" && return 0 + rbd-nbd list-mapped | expect_false grep "${list_dev} *$" && return 0 done return 1 }