diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-04-25 19:51:52 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-04-25 19:51:52 +0200 |
commit | ffead4f333d4d2a80a6913842a50fd265d5c4018 (patch) | |
tree | 4194eabde0a53fadc7ec6a2f602e0d73b5534fba /test | |
parent | 7f2939d328cf273f7f086a2ddf6cfaab86cf07c1 (diff) | |
download | lvm2-ffead4f333d4d2a80a6913842a50fd265d5c4018.tar.gz |
tests: adapt waiting for pvmove start
Previous commit cause the pvmove could actually be started in unexpected
order - so make sure, we are not starting new pvmove in same VG until
the previous one is started.
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/aux.sh | 5 | ||||
-rw-r--r-- | test/shell/pvmove-abort-all.sh | 4 | ||||
-rw-r--r-- | test/shell/pvmove-abort.sh | 4 |
3 files changed, 4 insertions, 9 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index c773485f5..241bbd595 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -2025,11 +2025,6 @@ wait_pvmove_lv_ready() { test -e LOCAL_LVMPOLLD && die "Waiting for lvmpolld timed out" die "Waiting for pvmove LV to get activated has timed out" - - # TODO: remove, uneedeed ?? - # Adding settle here, to avoid remove, before processing of 'add' is finished - # (masking systemd-udevd issue) - #udev_wait 2 || true } # Holds device open with sleep which automatically expires after given timeout diff --git a/test/shell/pvmove-abort-all.sh b/test/shell/pvmove-abort-all.sh index c18467c87..872db041e 100644 --- a/test/shell/pvmove-abort-all.sh +++ b/test/shell/pvmove-abort-all.sh @@ -53,10 +53,10 @@ cmd3=(pvmove -i1 $backgroundarg $mode -n $vg1/$lv1 "$dev4" "$dev6") if test -z "$backgroundarg" ; then "${cmd1[@]}" & + aux wait_pvmove_lv_ready "$vg-pvmove0" "${cmd2[@]}" & "${cmd3[@]}" & - aux wait_pvmove_lv_ready "$vg-pvmove0" "$vg-pvmove1" "$vg1-pvmove0" - lvs -a $vg $vg1 + aux wait_pvmove_lv_ready "$vg-pvmove1" "$vg1-pvmove0" else LVM_TEST_TAG="kill_me_$PREFIX" "${cmd1[@]}" LVM_TEST_TAG="kill_me_$PREFIX" "${cmd2[@]}" diff --git a/test/shell/pvmove-abort.sh b/test/shell/pvmove-abort.sh index 2917318f4..86f24176e 100644 --- a/test/shell/pvmove-abort.sh +++ b/test/shell/pvmove-abort.sh @@ -42,13 +42,13 @@ cmd2=(pvmove -i1 $backgroundarg $mode "$dev2" "$dev3") if test -z "$backgroundarg" ; then "${cmd1[@]}" & + aux wait_pvmove_lv_ready "$vg-pvmove0" "${cmd2[@]}" & - aux wait_pvmove_lv_ready "$vg-pvmove0" "$vg-pvmove1" + aux wait_pvmove_lv_ready "$vg-pvmove1" else LVM_TEST_TAG="kill_me_$PREFIX" "${cmd1[@]}" LVM_TEST_TAG="kill_me_$PREFIX" "${cmd2[@]}" fi - # remove specific device pvmove --abort "$dev1" |