Live Patching
 help / color / mirror / Atom feed
* [PATCH] selftests: livepatch: set LC_ALL=C to fix locale-dependent test failure
@ 2026-05-27  9:59 Qiang Ma
  2026-05-27 12:09 ` Marcos Paulo de Souza
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Qiang Ma @ 2026-05-27  9:59 UTC (permalink / raw)
  To: jpoimboe, jikos, mbenes, pmladek, joe.lawrence, shuah
  Cc: live-patching, linux-kselftest, linux-kernel, Qiang Ma

When executing the command
"make -C tools/testing/selftests TARGETS=livepatch run_tests",
the following error message was reported.

TEST: livepatch interaction with ftrace_enabled sysctl ... not ok
...
livepatch: sysctlo
: setting key "kernel.ftrace_enabled": Device or resource busy
livepatch: sysctl: setting key "kernel.ftrace_enabled": 设备或资源忙
...
ERROR: livepatch kselftest(s) failed
not ok 5 selftests: livepatch: test-ftrace.sh # exit=1

To fix it, set LC_ALL=C.

Signed-off-by: Qiang Ma <maqianga@uniontech.com>
---
 tools/testing/selftests/livepatch/functions.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/testing/selftests/livepatch/functions.sh b/tools/testing/selftests/livepatch/functions.sh
index 8ec0cb64ad94..ecf27c1120f1 100644
--- a/tools/testing/selftests/livepatch/functions.sh
+++ b/tools/testing/selftests/livepatch/functions.sh
@@ -4,6 +4,8 @@
 
 # Shell functions for the rest of the scripts.
 
+export LC_ALL=C
+
 MAX_RETRIES=600
 RETRY_INTERVAL=".1"	# seconds
 SYSFS_KERNEL_DIR="/sys/kernel"
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-03 13:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-27  9:59 [PATCH] selftests: livepatch: set LC_ALL=C to fix locale-dependent test failure Qiang Ma
2026-05-27 12:09 ` Marcos Paulo de Souza
2026-05-27 13:19   ` Qiang Ma
2026-05-28 11:38 ` Petr Mladek
2026-05-28 11:43 ` Miroslav Benes
2026-06-03 13:12 ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox