Thread (7 messages) 7 messages, 1 author, 2026-08-12

Re: [PATCH v2 1/4] selftests/ftrace: Add generic boot tracing test framework

flat view

From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date: 2026-08-12 00:05:09
Also in: linux-kselftest, lkml

On Wed, 12 Aug 2026 00:34:27 +0900
"Masami Hiramatsu (Google)" [off-list ref] wrote:
From: Masami Hiramatsu (Google) <mhiramat@kernel.org>
quoted hunk ↗ jump to hunk
+# Verify busybox architecture compatibility
+if command -v file >/dev/null 2>&1; then
+	BUSYBOX_INFO="$(file -b "$BUSYBOX" 2>/dev/null || true)"
Sashiko pointed:
Will this check skip the tests incorrectly if the busybox binary is a symbolic
link?
The file command is invoked without the -L (dereference) flag. If the provided
busybox path is a symbolic link, the file command will output "symbolic link
to..." rather than the actual executable architecture. This causes it to fall
through the case statement below and incorrectly skip the test suite on
supported architectures.
Could this use file -bL instead?
Yeah, I forgot that case. Let me fix it.

Thanks,


-- 
Masami Hiramatsu (Google) [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help