| From 7dc7c312612a1e13b3830a8aeb81b856b7a5494c Mon Sep 17 00:00:00 2001 |
| From: Rolf Eike Beer <eb@emlix.com> |
| Date: Wed, 14 Dec 2016 11:59:34 +0100 |
| Subject: [PATCH] selftests: do not require bash for the generated test |
| |
| commit a2b1e8a20c992b01eeb76de00d4f534cbe9f3822 upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile |
| index ff9e5f20a5a7..ff2c798cd470 100644 |
| --- a/tools/testing/selftests/Makefile |
| +++ b/tools/testing/selftests/Makefile |
| @@ -86,7 +86,7 @@ ifdef INSTALL_PATH |
| done; |
| |
| @# Ask all targets to emit their test scripts |
| - echo "#!/bin/bash" > $(ALL_SCRIPT) |
| + echo "#!/bin/sh" > $(ALL_SCRIPT) |
| echo "cd \$$(dirname \$$0)" >> $(ALL_SCRIPT) |
| echo "ROOT=\$$PWD" >> $(ALL_SCRIPT) |
| |
| -- |
| 2.10.1 |
| |