selftests: firmware: return Kselftest Skip code for skipped tests
When firmware test(s) get skipped because of unmet dependencies and/or unsupported configuration, it returns 0 which is treated as a pass by the Kselftest framework. This leads to false positive result even when the test could not be run. Change it to return kselftest skip code when a test gets skipped to clearly report that the test could not be run. Kselftest framework SKIP code is 4 and the framework prints appropriate messages to indicate that the test is skipped. Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org> Reviewed-by: Luis R. Rodriguez <mcgrof@kernel.org> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
This commit is contained in:
@@ -74,7 +74,7 @@ load_fw_custom()
|
||||
{
|
||||
if [ ! -e "$DIR"/trigger_custom_fallback ]; then
|
||||
echo "$0: custom fallback trigger not present, ignoring test" >&2
|
||||
return 1
|
||||
exit $ksft_skip
|
||||
fi
|
||||
|
||||
local name="$1"
|
||||
@@ -107,7 +107,7 @@ load_fw_custom_cancel()
|
||||
{
|
||||
if [ ! -e "$DIR"/trigger_custom_fallback ]; then
|
||||
echo "$0: canceling custom fallback trigger not present, ignoring test" >&2
|
||||
return 1
|
||||
exit $ksft_skip
|
||||
fi
|
||||
|
||||
local name="$1"
|
||||
|
Reference in New Issue
Block a user