summaryrefslogtreecommitdiffstats
path: root/qa/workunits/rbd/rbd-nbd.sh
diff options
context:
space:
mode:
authorMykola Golub <mgolub@suse.com>2020-04-28 12:45:33 +0200
committerMykola Golub <mgolub@suse.com>2020-04-28 12:45:33 +0200
commitd667e385a12ea4125dbf74da97a9ba4911a3f7bc (patch)
treefbe0fec4284645d7f1a3d0f0ae146f88492a4205 /qa/workunits/rbd/rbd-nbd.sh
parentMerge pull request #34429 from xxhdx1985126/wip-crimson-recovery-pr (diff)
downloadceph-d667e385a12ea4125dbf74da97a9ba4911a3f7bc.tar.xz
ceph-d667e385a12ea4125dbf74da97a9ba4911a3f7bc.zip
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>
Diffstat (limited to '')
-rwxr-xr-xqa/workunits/rbd/rbd-nbd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/workunits/rbd/rbd-nbd.sh b/qa/workunits/rbd/rbd-nbd.sh
index f4fe2481186..5475116cdb3 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
}