Skip to content

Commit cd61d47

Browse files
mcgrofgregkh
authored andcommitted
selftests: firmware: fix verify_reqs() return value
commit 344c015 upstream. commit a6a9be9 ("selftests: firmware: return Kselftest Skip code for skipped tests") by Shuah modified failures to return the special error code of $ksft_skip (4). We have a corner case issue where we *do* want to verify_reqs(). Cc: <stable@vger.kernel.org> # >= 4.18 Fixes: a6a9be9 ("selftests: firmware: return Kselftest Skip code for for skipped tests") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9765ec7 commit cd61d47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/testing/selftests/firmware/fw_lib.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ verify_reqs()
9191
if [ "$TEST_REQS_FW_SYSFS_FALLBACK" = "yes" ]; then
9292
if [ ! "$HAS_FW_LOADER_USER_HELPER" = "yes" ]; then
9393
echo "usermode helper disabled so ignoring test"
94-
exit $ksft_skip
94+
exit 0
9595
fi
9696
fi
9797
}

0 commit comments

Comments
 (0)