]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rbd: fix list-mapped filter in unmap_device
authorMykola Golub <mgolub@suse.com>
Tue, 28 Apr 2020 10:45:33 +0000 (11:45 +0100)
committerMykola Golub <mgolub@suse.com>
Tue, 28 Apr 2020 10:45:33 +0000 (11:45 +0100)
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 <mgolub@suse.com>
qa/workunits/rbd/rbd-nbd.sh

index f4fe2481186f658e9cb9f8d7aec85cc4b2db6b59..5475116cdb3db5b080f047f3028aba83c77661ab 100755 (executable)
@@ -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
 }