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

selftests: Remove KSFT_TAP_LEVEL

Since sub-testing can now be detected by indentation level, this removes
KSFT_TAP_LEVEL so that subtests report their TAP header for later parsing.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Kees Cook and committed by
Shuah Khan
f41c322f 5c069b6d

-7
-6
tools/testing/selftests/Makefile
··· 86 86 endif 87 87 endif 88 88 89 - # KSFT_TAP_LEVEL is used from KSFT framework to prevent nested TAP header 90 - # printing from tests. Applicable to run_tests case where run_tests adds 91 - # TAP header prior running tests and when a test program invokes another 92 - # with system() call. Export it here to cover override RUN_TESTS defines. 93 - export KSFT_TAP_LEVEL=`echo 1` 94 - 95 89 # Prepare for headers install 96 90 top_srcdir ?= ../../.. 97 91 include $(top_srcdir)/scripts/subarch.include
-1
tools/testing/selftests/kselftest/runner.sh
··· 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 # 4 4 # Runs a set of tests in a given subdirectory. 5 - export KSFT_TAP_LEVEL=1 6 5 export skip_rc=4 7 6 export logfile=/dev/stdout 8 7 export per_test_logging=