Skip to contentSkip to conversation

patch "selftests: firmware: fix verify_reqs() return value" added to driver-core-testing

PATCH [email protected] 1 participant 1 message Feb 8, 2019

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

selftests: firmware: fix verify_reqs() return value

to my driver-core git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
in the driver-core-testing branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will be merged to the driver-core-next branch sometime soon, after it passes testing, and the merge window is open.

If you have any questions about this process, please let me know.

From 344c0152d878922365464b7140c74c2a5e073d99 Mon Sep 17 00:00:00 2001
From: Luis Chamberlain <[email protected]>
Date: Thu, 7 Feb 2019 11:06:02 -0800
Subject: 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 <[email protected]> # >= 4.18
Fixes a6a9be9270c87 ("selftests: firmware: return Kselftest Skip code for for skipped tests")
---
 tools/testing/selftests/firmware/fw_lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/firmware/fw_lib.sh +1 -1
index 6c5f1b2ffb74..1cbb12e284a6 100755
@@ -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
 }
Signature · 1 line
2.20.1