Fix for REPORTED_VALUE not being correct in all cases.

This commit is contained in:
Patrick Van der Veken 2017-12-27 11:43:04 +01:00
parent d1746d0158
commit a80380c34b

View File

@ -93,18 +93,18 @@ do
_MSG="${_PARAM_NAME} is set with the right value (${_CURR_VALUE})" _MSG="${_PARAM_NAME} is set with the right value (${_CURR_VALUE})"
else else
_MSG="${_PARAM_NAME} has a wrong value (${_CONFIG_VALUE} != ${_CURR_VALUE})" _MSG="${_PARAM_NAME} has a wrong value (${_CONFIG_VALUE} != ${_CURR_VALUE})"
_REPORTED_VALUE="${_CURR_VALUE}"
_STC=1 _STC=1
fi fi
_REPORTED_VALUE="${_CURR_VALUE}"
else else
if [[ "${_CONFIG_VALUE}" = "${_EXPR_VALUE}" ]] if [[ "${_CONFIG_VALUE}" = "${_EXPR_VALUE}" ]]
then then
_MSG="${_PARAM_NAME} is set with the right expression (${_EXPR_VALUE})" _MSG="${_PARAM_NAME} is set with the right expression (${_EXPR_VALUE})"
else else
_MSG="${_PARAM_NAME} has a wrong expression (${_CONFIG_VALUE} != ${_EXPR_VALUE})" _MSG="${_PARAM_NAME} has a wrong expression (${_CONFIG_VALUE} != ${_EXPR_VALUE})"
_REPORTED_VALUE="${_EXPR_VALUE}"
_STC=1 _STC=1
fi fi
_REPORTED_VALUE="${_EXPR_VALUE}"
fi fi
# handle unit result # handle unit result