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

Commit

Permalink
CORTX-30751: Codacy code cleanup (#1606) (#1921)
Browse files Browse the repository at this point in the history
This patch fixes some of the codacy warnings.
warning fixed : "Double quote to prevent globing and words splitting".

Signed-off-by: alfhad <fahadshah2411@gmail.com>
  • Loading branch information
alfhad authored Sep 11, 2022
1 parent 95c74f2 commit 19b6fbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spiel/st/m0t1fs_spiel_sns_repair.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spiel_sns_repair_and_rebalance_test()
local fail_device2=9
local fail_device3=3

local_write $src_bs $src_count || return $?
local_write "$src_bs" "$src_count" || return $?

echo "Starting SNS repair testing ..."
for ((i=0; i < ${#files[*]}; i++)) ; do
Expand Down Expand Up @@ -146,7 +146,7 @@ test_repaired_device_failure()
echo "SNS Rebalance done."

verify || return $?
disk_state_get $fail_device1 || return $?
disk_state_get "$fail_device1" || return $?
}

test_new_device_failure()
Expand Down Expand Up @@ -182,7 +182,7 @@ test_new_device_failure()
echo "SNS Rebalance done."

verify || return $?
disk_state_get $fail_device1 $fail_device2 || return $?
disk_state_get "$fail_device1" "$fail_device2" || return $?
}

rebalance_abort()
Expand All @@ -206,8 +206,8 @@ rebalance_abort()
echo "SNS Repair done."
verify || return $?

disk_state_set "rebalance" $fail_device1 || return $?
disk_state_get $fail_device1 || return $?
disk_state_set "rebalance" "$fail_device1" || return $?
disk_state_get "$fail_device1" || return $?
sleep 2
echo "Starting SNS Re-balance.."
spiel_sns_rebalance_start
Expand All @@ -218,7 +218,7 @@ rebalance_abort()
spiel_wait_for_sns_rebalance || return $?

echo "Set $fail_device1 back to "repaired""
disk_state_set "repaired" $fail_device1 || return $?
disk_state_set "repaired" "$fail_device1" || return $?
if [ "$fail_device1" -eq "$fail_device2" ]
then
test_repaired_device_failure "$fail_device1"
Expand Down

0 comments on commit 19b6fbd

Please sign in to comment.