summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuis Chamberlain <mcgrof@kernel.org>2019-02-07 11:06:02 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-08 13:00:43 +0100
commit344c0152d878922365464b7140c74c2a5e073d99 (patch)
tree23fecb5439416dcbab84acd2555db372082f2cbb
parent13ac7db09c914e4991a08b7ad578267d5cdd9856 (diff)
downloadlinux-344c0152d878922365464b7140c74c2a5e073d99.tar.gz
selftests: firmware: fix verify_reqs() return value
commit a6a9be9270c87 ("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: a6a9be9270c87 ("selftests: firmware: return Kselftest Skip code for for skipped tests")
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xtools/testing/selftests/firmware/fw_lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/firmware/fw_lib.sh b/tools/testing/selftests/firmware/fw_lib.sh
index 6c5f1b2ffb74..1cbb12e284a6 100755
--- a/tools/testing/selftests/firmware/fw_lib.sh
+++ b/tools/testing/selftests/firmware/fw_lib.sh
@@ -91,7 +91,7 @@ verify_reqs()
 	if [ "$TEST_REQS_FW_SYSFS_FALLBACK" = "yes" ]; then
 		if [ ! "$HAS_FW_LOADER_USER_HELPER" = "yes" ]; then
 			echo "usermode helper disabled so ignoring test"
-			exit $ksft_skip
+			exit 0
 		fi
 	fi
 }