selftests: lib.mk set KSFT_TAP_LEVEL to prevent nested TAP headers
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 22 Feb 2018 00:22:08 +0000 (17:22 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 6 Mar 2018 02:10:35 +0000 (19:10 -0700)
Set KSFT_TAP_LEVEL before running tests to prevent nested TAP header
printing from tests.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/lib.mk

index 7de482a0519dbbc9889e8d969d064bae4d29b3d5..195e9d4739a98d6aee0fb10f2c074b2a55bcf531 100644 (file)
@@ -20,6 +20,7 @@ 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                           \