mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Make the script complaint with 'sh' shell
@ 2026-03-18  8:08 Hubert Mazur
  2026-03-18  8:08 ` [PATCH v1 1/1] selftests/cpu-hotplug: Make the script complaint with sh shell Hubert Mazur
  0 siblings, 1 reply; 4+ messages in thread
From: Hubert Mazur @ 2026-03-18  8:08 UTC (permalink / raw)
  To: Shuah Khan, Jihed Chaibi
  Cc: Slawomir Rosek, Lukasz Majczak, linux-kselftest, linux-kernel,
	Hubert Mazur

Hello,

I'm sending a change that modifies the script a bit to make it
compliant with the 'sh' shell. The reason behind it is that the test
cannot be executed on x86 embedded devices without bash. The introduced
changes are:
- /bin/bash -> /bin/sh
- Usage of env $UID changed to command execution $(id -u)
- $FUNCNAME env changed to local variables with function names

I'm aware that the last one may be the most controversial since it is
not the most elegant one, though I didn't find any better solution
to retrieve the name of currently executed function in 'sh'.

Please take a look.

Regards,
Hubert

Hubert Mazur (1):
  selftests/cpu-hotplug: Make the script complaint with sh shell

 tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

-- 
2.53.0.959.g497ff81fa9-goog


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

end of thread, other threads:[~2026-04-01 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-18  8:08 [PATCH v1 0/1] Make the script complaint with 'sh' shell Hubert Mazur
2026-03-18  8:08 ` [PATCH v1 1/1] selftests/cpu-hotplug: Make the script complaint with sh shell Hubert Mazur
2026-03-31 21:52   ` Shuah Khan
2026-04-01 11:56     ` Hubert Mazur

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

all inboxes | Powered by JetHome®