summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/ec/ec-data-heal.t20
1 files changed, 4 insertions, 16 deletions
diff --git a/tests/basic/ec/ec-data-heal.t b/tests/basic/ec/ec-data-heal.t
index 4599c8a336b..2672661c6b1 100755
--- a/tests/basic/ec/ec-data-heal.t
+++ b/tests/basic/ec/ec-data-heal.t
@@ -22,14 +22,11 @@ iopid=$(echo $!)
############ Kill and start brick0 for heal ###########
-brick0=$(ps -p $(get_brick_pid $V0 $H0 $B0/${V0}0) -o args)
-WORDTOREMOVE=COMMAND
-brick0=${brick0//$WORDTOREMOVE/}
TEST kill_brick $V0 $H0 $B0/${V0}0
EXPECT_WITHIN $CHILD_UP_TIMEOUT "2" ec_child_up_count $V0 0
#sleep so that data can be written which will be healed later
sleep 10
-TEST eval $brick0
+TEST $CLI volume start $V0 force
##wait for heal info to become 0 and kill IO
EXPECT_WITHIN $IO_HEAL_TIMEOUT "^0$" get_pending_heal_count $V0
kill $iopid
@@ -39,44 +36,35 @@ EXPECT_WITHIN $IO_HEAL_TIMEOUT "^0$" get_pending_heal_count $V0
## unmount and mount get md5sum after killing brick0
-brick0=$(ps -p $(get_brick_pid $V0 $H0 $B0/${V0}0) -o args)
-WORDTOREMOVE=COMMAND
-brick0=${brick0//$WORDTOREMOVE/}
TEST kill_brick $V0 $H0 $B0/${V0}0
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0;
EXPECT_WITHIN $CHILD_UP_TIMEOUT "2" ec_child_up_count $V0 0
mdsum0=`md5sum $M0/file | awk '{print $1}'`
-TEST eval $brick0
+TEST $CLI volume start $V0 force
EXPECT_WITHIN $CHILD_UP_TIMEOUT "3" ec_child_up_count $V0 0
## unmount and mount get md5sum after killing brick1
-brick1=$(ps -p $(get_brick_pid $V0 $H0 $B0/${V0}1) -o args)
-WORDTOREMOVE=COMMAND
-brick1=${brick1//$WORDTOREMOVE/}
TEST kill_brick $V0 $H0 $B0/${V0}1
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0;
EXPECT_WITHIN $CHILD_UP_TIMEOUT "2" ec_child_up_count $V0 0
mdsum1=`md5sum $M0/file | awk '{print $1}'`
-TEST eval $brick1
+TEST $CLI volume start $V0 force
EXPECT_WITHIN $CHILD_UP_TIMEOUT "3" ec_child_up_count $V0 0
## unmount and mount get md5sum after killing brick2
-brick2=$(ps -p $(get_brick_pid $V0 $H0 $B0/${V0}2) -o args)
-WORDTOREMOVE=COMMAND
-brick2=${brick2//$WORDTOREMOVE/}
TEST kill_brick $V0 $H0 $B0/${V0}2
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
TEST $GFS --volfile-id=/$V0 --volfile-server=$H0 $M0;
EXPECT_WITHIN $CHILD_UP_TIMEOUT "2" ec_child_up_count $V0 0
mdsum2=`md5sum $M0/file | awk '{print $1}'`
-TEST eval $brick2
+TEST $CLI volume start $V0 force
EXPECT_WITHIN $CHILD_UP_TIMEOUT "3" ec_child_up_count $V0 0
# compare all the three md5sums