variable '$ret' instead of the correct '$?' to check the exit status
of the wait_for_state function call.
This fix ensures the function properly checks the return value and
handles recovery timeout scenarios correctly in the OSD recovery
space test.
Fixes: undefined variable reference in test script
Signed-off-by: fxtack <fxtack@foxmail.com>
function wait_for_recovery_toofull() {
local timeout=$1
wait_for_state recovery_toofull $timeout
- if [ $ret -ne 0 ]; then
+ if [ $? -ne 0 ]; then
echo "Error: Recovery toofull timeout"
return 1
fi