diff --git a/test/lib/check.sh b/test/lib/check.sh index 6b7849f84..48e30738f 100644 --- a/test/lib/check.sh +++ b/test/lib/check.sh @@ -170,8 +170,8 @@ in_sync() { fi if [ ${a[2]} = "raid" ]; then - # Last argument is the sync ratio for RAID - idx=$((${#a[@]} - 1)) + # 6th argument is the sync ratio for RAID + idx=6 type=${a[3]} elif [ ${a[2]} = "mirror" ]; then # 4th Arg tells us how far to the sync ratio