Skip to contentSkip to conversation

kselftest next update regression fixes for Linux 7.1-rc1

GIT PULL Merged Shuah Khan 2 participants 2 messages Apr 20 – Apr 21 Kselftest

lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

Hi Linus,

Please pull these fixes to regressions introduced in the next update that are breaking CI runs.

Fixes regressions in non-bash shells and busybox support, and reverts a commit that regression in build and installation when one or more tests fail to build. Fixes duplicated test number reporting introduced in ktap support patch.

- selftests: Fix duplicated test number reporting
- selftests: Fix runner.sh for non-bash shells
- selftests: Fix runner.sh busybox support
- selftests: Deescalate error reporting

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit f8e0a5a174d7d3bc3547c15bc1647c35427f5c34:

selftests/ftrace: Quote check_requires comparisons (2026-04-13 11:05:39 -0600)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-next-7.1-next-fixes

for you to fetch changes up to 83ef26f911432d9c98b6d8b6ed0709a8b79cd834:

selftests: Fix duplicated test number reporting (2026-04-17 11:29:03 -0600)

----------------------------------------------------------------
linux_kselftest-next-7.1-next-fixes

Fixes regressions in non-bash shells and busybox support, and reverts a commit that regression in build and installation when one or more tests fail to build. Fixes duplicated test number reporting introduced in ktap support patch.

- selftests: Fix duplicated test number reporting
- selftests: Fix runner.sh for non-bash shells
- selftests: Fix runner.sh busybox support
- selftests: Deescalate error reporting

----------------------------------------------------------------
Mark Brown (4):
selftests: Deescalate error reporting
selftests: Fix runner.sh busybox support
selftests: Fix runner.sh for non-bash shells
selftests: Fix duplicated test number reporting

 tools/testing/selftests/Makefile            |  8 ++---
 tools/testing/selftests/kselftest/runner.sh | 49 ++++++++++++++---------------
 2 files changed, 28 insertions(+), 29 deletions(-)

----------------------------------------------------------------

tools/testing/selftests/Makefile +4 -4
index 0949f370ad78..450f13ba4cca 100644
@@ -209,14 +209,14 @@ export KHDR_INCLUDES
 .DEFAULT_GOAL := all
 
 all:
-	@ret=0;							\
+	@ret=1;							\
 	for TARGET in $(TARGETS) $(INSTALL_DEP_TARGETS); do	\
 		BUILD_TARGET=$$BUILD/$$TARGET;			\
 		mkdir $$BUILD_TARGET  -p;			\
 		$(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET	\
 				O=$(abs_objtree)		\
 				$(if $(FORCE_TARGETS),|| exit);	\
-		[ $$? -eq 0 ] || ret=1;			\
+		ret=$$((ret * $$?));				\
 	done; exit $$ret;
 
 run_tests: all
@@ -274,7 +274,7 @@ ifdef INSTALL_PATH
 	install -m 744 kselftest/ksft.py $(INSTALL_PATH)/kselftest/
 	install -m 744 run_kselftest.sh $(INSTALL_PATH)/
 	rm -f $(TEST_LIST)
-	@ret=0;	\
+	@ret=1;	\
 	for TARGET in $(TARGETS) $(INSTALL_DEP_TARGETS); do \
 		BUILD_TARGET=$$BUILD/$$TARGET;	\
 		$(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET install \
@@ -283,7 +283,7 @@ ifdef INSTALL_PATH
 				OBJ_PATH=$(INSTALL_PATH) \
 				O=$(abs_objtree)		\
 				$(if $(FORCE_TARGETS),|| exit);	\
-		[ $$? -eq 0 ] || ret=1;		\
+		ret=$$((ret * $$?));		\
 	done; exit $$ret;
 
 
tools/testing/selftests/kselftest/runner.sh +24 -25

123 lines not on this page · raw message

merge bot Merged
#1 lore raw
The pull request you sent on Mon, 20 Apr 2026 09:17:00 -0600:

The pull request you sent on Mon, 20 Apr 2026 09:17:00 -0600:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-next-7.1-next-fixes

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f154634e42f724a3444694273e396f0a62fef3f1

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html