Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit fce917a

Browse files
authored
CORTX-33051: [DI] Modify RMW ST to run with and without -G option (#2130)
Made changes in 45motr-rmw ST to test all scenarios with and without generating DI. Signed-off-by: Rajat Patil <[email protected]>
1 parent f8d08ca commit fce917a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

motr/st/utils/motr_rmw_st.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,10 @@ write_and_update()
120120
{
121121
local LID=$1
122122
local update_count=$2
123+
local di_flag=$4
123124

124125
echo "m0cp"
125-
$motr_st_util_dir/m0cp -G $MOTR_PARAMS -o $object_id $src_file \
126+
$motr_st_util_dir/m0cp $di_flag $MOTR_PARAMS -o $object_id $src_file \
126127
-s $block_size -c $block_count -L $LID || {
127128
error_handling $? "Failed to copy object"
128129
break
@@ -144,7 +145,7 @@ write_and_update()
144145
break
145146
}
146147
echo "m0cat"
147-
$motr_st_util_dir/m0cat -G $MOTR_PARAMS -o $object_id -s $block_size \
148+
$motr_st_util_dir/m0cat $di_flag $MOTR_PARAMS -o $object_id -s $block_size \
148149
-c $block_count -L $LID \
149150
$dest_file'_'$LID || {
150151
error_handling $? "Failed to read object"
@@ -222,6 +223,7 @@ test_rmw()
222223
create_files $update_count
223224

224225
write_and_update $LID $update_count false
226+
write_and_update $LID $update_count false -G
225227

226228
echo "diff"
227229
diff $src_file'2' $dest_file'_'$LID || {
@@ -239,6 +241,7 @@ test_rmw()
239241
create_files $update_count
240242

241243
write_and_update $LID $update_count true
244+
write_and_update $LID $update_count true -G
242245

243246
echo "diff"
244247
diff $src_file'2' $dest_file'_'$LID || {

0 commit comments

Comments
 (0)