summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-05-04 07:26:51 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2018-05-04 07:26:51 +0200
commit1504269814263c9676b4605a6a91e14dc6ceac21 (patch)
tree6c6cb6bd6016ea571755e3c01eb0c0cfa233e501 /tools/testing/selftests
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
parentselftests: Fix lib.mk run_tests target shell script (diff)
downloadlinux-1504269814263c9676b4605a6a91e14dc6ceac21.tar.xz
linux-1504269814263c9676b4605a6a91e14dc6ceac21.zip
Merge tag 'linux-kselftest-4.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest fixes from Shuah Khan: "This Kselftest update for 4.17-rc4 consists of a fix for a syntax error in the script that runs selftests. Mathieu Desnoyers found this bug in the script on systems running GNU Make 3.8 or older" * tag 'linux-kselftest-4.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests: Fix lib.mk run_tests target shell script
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r--tools/testing/selftests/lib.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk
index 195e9d4739a9..c1b1a4dc6a96 100644
--- a/tools/testing/selftests/lib.mk
+++ b/tools/testing/selftests/lib.mk
@@ -20,10 +20,10 @@ all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES)
.ONESHELL:
define RUN_TESTS
- @export KSFT_TAP_LEVEL=`echo 1`;
- @test_num=`echo 0`;
- @echo "TAP version 13";
- @for TEST in $(1); do \
+ @export KSFT_TAP_LEVEL=`echo 1`; \
+ test_num=`echo 0`; \
+ echo "TAP version 13"; \
+ for TEST in $(1); do \
BASENAME_TEST=`basename $$TEST`; \
test_num=`echo $$test_num+1 | bc`; \
echo "selftests: $$BASENAME_TEST"; \