mirror of
https://github.com/ceph/ceph
synced 2025-01-04 10:12:30 +00:00
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:
parent
9486206f5a
commit
d667e385a1
@ -106,7 +106,7 @@ unmap_device()
|
|||||||
|
|
||||||
for s in 0.5 1 2 4 8 16 32; do
|
for s in 0.5 1 2 4 8 16 32; do
|
||||||
sleep ${s}
|
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
|
done
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user