selftests: Remove KSFT_TAP_LEVEL
authorKees Cook <keescook@chromium.org>
Wed, 24 Apr 2019 23:12:36 +0000 (16:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 25 Apr 2019 19:15:26 +0000 (13:15 -0600)
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>
tools/testing/selftests/Makefile
tools/testing/selftests/kselftest/runner.sh

index 64699f59b95f44fffaff60755bc9d3d40578d7ef..9f05448e5e4b580e7de21cfa7fb387ba7f2add89 100644 (file)
@@ -86,12 +86,6 @@ else
        endif
 endif
 
-# KSFT_TAP_LEVEL is used from KSFT framework to prevent nested TAP header
-# printing from tests. Applicable to run_tests case where run_tests adds
-# TAP header prior running tests and when a test program invokes another
-# with system() call. Export it here to cover override RUN_TESTS defines.
-export KSFT_TAP_LEVEL=`echo 1`
-
 # Prepare for headers install
 top_srcdir ?= ../../..
 include $(top_srcdir)/scripts/subarch.include
index b9f74e5a2ee5ae080821d75c87be6473146e0e1d..eff3ee303d0d6a5648acf335412637c4956f0c0e 100644 (file)
@@ -2,7 +2,6 @@
 # SPDX-License-Identifier: GPL-2.0
 #
 # Runs a set of tests in a given subdirectory.
-export KSFT_TAP_LEVEL=1
 export skip_rc=4
 export logfile=/dev/stdout
 export per_test_logging=