summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-26 00:43:44 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-26 00:43:44 +0100
commit9bcc76b63c14566e5ced09ac18129e1c9a98e8e4 (patch)
tree957c4013e55c9e2f3af2c28eb2d86f41f1830b23
parent5feb99dda68dd492929fff0d7b15d3ef0ab86347 (diff)
downloadlvm2-9bcc76b63c14566e5ced09ac18129e1c9a98e8e4.tar.gz
tests: add should for racy test
Depending on kernel, the race may or may not happen.
-rw-r--r--test/shell/lvextend-raid.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/shell/lvextend-raid.sh b/test/shell/lvextend-raid.sh
index 08b34d00c..87ad802c3 100644
--- a/test/shell/lvextend-raid.sh
+++ b/test/shell/lvextend-raid.sh
@@ -74,7 +74,8 @@ check lv_field $vg/$lv1 sync_percent "100.00"
lvextend -y -L+${lvext}M $vg/$lv1
if [ $PROGRESS -eq 1 ]
then
- not check lv_field $vg/$lv1 sync_percent "100.00"
+ # Even with delayed devices wre are catching races here.
+ should not check lv_field $vg/$lv1 sync_percent "100.00"
else
check lv_field $vg/$lv1 sync_percent "100.00"
fi