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 <mgolub@suse.com>
This commit is contained in:
Mykola Golub 2020-04-28 11:45:33 +01:00
parent 9486206f5a
commit d667e385a1

View File

@ -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
}