master - tests: try harder to kill all dangling procs
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=90cbc5576fa8511c7045700fa7de0bc3b01e2225 Commit: 90cbc5576fa8511c7045700fa7de0bc3b01e2225 Parent: 8c9ab2a4dd827b575a7a8b501c5ca3474508f964 Author: Ondrej Kozina <[email protected]> AuthorDate: Tue Apr 28 15:31:47 2015 +0200 Committer: Ondrej Kozina <[email protected]> CommitterDate: Tue Apr 28 22:31:50 2015 +0200
tests: try harder to kill all dangling procs
also simplify and make less prone to an error checks for running bg processes inside a pvmove-resume tests
--- test/shell/lvconvert-mirror.sh | 10 ++-- test/shell/mirror-names.sh | 2 +- test/shell/pvmove-background.sh | 4 +- test/shell/pvmove-resume-1.sh | 94 ++++++++++++++-------------------- test/shell/pvmove-resume-2.sh | 83 +++++++++++++----------------- test/shell/pvmove-resume-multiseg.sh | 84 +++++++++++++------------------ 6 files changed, 117 insertions(+), 160 deletions(-)
test/shell/lvconvert-mirror.sh +5 -5
@@ -99,7 +99,7 @@ lvremove -ff $vg lvcreate -aey -l5 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:0" check mirror $vg $lv1 check mirror_legs $vg $lv1 2 -lvconvert -m+1 -b $vg/$lv1 "$dev4" +LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4" # Next convert should fail b/c we can't have 2 at once should not lvconvert -m+1 $vg/$lv1 "$dev5"
@@ -156,7 +156,7 @@ lvremove -ff $vg # "remove newly added mirror" lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:$DEVRANGE" -lvconvert -m+1 -b $vg/$lv1 "$dev4" +LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4" lvconvert -m-1 $vg/$lv1 "$dev4" lvconvert $vg/$lv1 # wait
@@ -167,7 +167,7 @@ lvremove -ff $vg # "remove one of newly added mirrors" lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:$DEVRANGE" -lvconvert -m+2 -b $vg/$lv1 "$dev4" "$dev5" +LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+2 -b $vg/$lv1 "$dev4" "$dev5" lvconvert -m-1 $vg/$lv1 "$dev4" lvconvert $vg/$lv1 # wait
@@ -178,7 +178,7 @@ lvremove -ff $vg # "remove from original mirror (the original is still mirror)" lvcreate -aey -l2 --type mirror -m2 -n $lv1 $vg "$dev1" "$dev2" "$dev5" "$dev3:$DEVRANGE" -lvconvert -m+1 -b $vg/$lv1 "$dev4" +LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4" # FIXME: Extra wait here for mirror upconvert synchronization # otherwise we may fail her on parallel upconvert and downconvert # lvconvert-mirror-updown.sh tests this errornous case separately
@@ -193,7 +193,7 @@ lvremove -ff $vg # "remove from original mirror (the original becomes linear)" lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg "$dev1" "$dev2" "$dev3:$DEVRANGE" -lvconvert -m+1 -b $vg/$lv1 "$dev4" +LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -b $vg/$lv1 "$dev4" # FIXME: Extra wait here for mirror upconvert synchronization # otherwise we may fail her on parallel upconvert and downconvert # lvconvert-mirror-updown.sh tests this errornous case separately
test/shell/mirror-names.sh +1 -1
@@ -101,7 +101,7 @@ check_and_cleanup_lvs_ #COMM "converting mirror names is ${lv1}_mimagetmp_2" lvcreate -aey -l2 --type mirror -m1 -n $lv1 $vg -lvconvert -m+1 -i+40 -b $vg/$lv1 +LVM_TEST_TAG="kill_me_$PREFIX" lvconvert -m+1 -i+40 -b $vg/$lv1 convlv=$(lv_convert_lv_ $vg/$lv1) test $convlv = ${lv1}_mimagetmp_2 lv_devices_ $vg/$lv1 $convlv ${lv1}_mimage_2
test/shell/pvmove-background.sh +2 -2
@@ -20,10 +20,10 @@ do lvcreate -aey -l1 -n $lv1 $vg "$dev1" lvs -o +devices | grep "$dev1" -pvmove $mode -i 1 -b "$dev1" "$dev2" +LVM_TEST_TAG="kill_me_$PREFIX" pvmove $mode -i 1 -b "$dev1" "$dev2" sleep 5 # arbitrary... lvs -o +devices | not grep "pvmove" lvs -o +devices | grep "$dev2" lvremove -ff $vg -done +done
test/shell/pvmove-resume-1.sh +39 -55
167 lines not on this page · raw message
test/shell/pvmove-resume-2.sh +35 -48
152 lines not on this page · raw message
test/shell/pvmove-resume-multiseg.sh +35 -49
153 lines not on this page · raw message