Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: do not require bash for the generated test

Nothing in this minimal script seems to require bash. We often run these
tests on embedded devices where the only shell available is the busybox
ash. Use sh instead.

Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Cc: stable@vger.kernel.org
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>

authored by

Rolf Eike Beer and committed by
Shuah Khan
a2b1e8a2 7ce7d89f

+1 -1
+1 -1
tools/testing/selftests/Makefile
··· 90 90 done; 91 91 92 92 @# Ask all targets to emit their test scripts 93 - echo "#!/bin/bash" > $(ALL_SCRIPT) 93 + echo "#!/bin/sh" > $(ALL_SCRIPT) 94 94 echo "cd \$$(dirname \$$0)" >> $(ALL_SCRIPT) 95 95 echo "ROOT=\$$PWD" >> $(ALL_SCRIPT) 96 96