Skip to content

Commit 4057c6c

Browse files
committed
TEST: Speed up the rain tests
1 parent d1fcd38 commit 4057c6c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

test/eos-rain-test

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -314,33 +314,28 @@ date
314314
for file in $ROOT_PATH/*.rain; do
315315
if [[ -f $file ]]; then
316316
file=$(basename $file)
317-
# get the filesystems on which this files resides
317+
# get the filesystems on which this file resides
318318
get_file_fs "$EOS_DIR/$file"
319319
echo "Process file $file ..."
320320
idx1=0
321321

322322
for fst1 in "${VECT_FS[@]}"; do
323323
idx2=0
324+
$SUDO $EOS -b fs config $fst1 configstatus=off
324325

325326
for fst2 in "${VECT_FS[@]}"; do
326327
if [ "$idx2" -gt "$idx1" ]; then
327328
#echo "Disable FST $fst1 and $fst2 and redo read test..."
328-
329-
# disable one FST in EOS and test read
330-
$SUDO $EOS -b fs config $fst1 configstatus=off
331329
$SUDO $EOS -b fs config $fst2 configstatus=off
332330
sleep 1
333-
334331
read_and_check $ROOT_PATH $EOS_DEST $file ${MAP_XS[$file]}
335-
336-
# restore the configuraton in EOS
337-
$SUDO $EOS -b fs config $fst1 configstatus=rw
338332
$SUDO $EOS -b fs config $fst2 configstatus=rw
339333
fi
340-
341334
idx2=$((idx2 + 1))
342335
done
343-
336+
337+
# restore the configuraton in EOS
338+
$SUDO $EOS -b fs config $fst1 configstatus=rw
344339
idx1=$((idx1 + 1))
345340
done
346341
fi

0 commit comments

Comments
 (0)