OSDN Git Service

selftests: gen_kselftest_tar.sh: Do not clobber kselftest/
authorKees Cook <keescook@chromium.org>
Wed, 30 Oct 2019 19:46:08 +0000 (12:46 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 7 Nov 2019 21:43:27 +0000 (14:43 -0700)
commitea1bf0bb18c0bd627d7b551196453ff2fff44225
treed633df52c7247e2bbddc892fce717b6cfb3b992a
parent5b06eeae52c02dd0d9bc8488275a1207d410870b
selftests: gen_kselftest_tar.sh: Do not clobber kselftest/

The default installation location for gen_kselftest_tar.sh was still
"kselftest/" which collides with the existing directory. Instead, this
moves the installation target into "kselftest_install/kselftest/" and
adjusts the tar creation accordingly. This also adjusts indentation and
logic to be consistent.

Fixes: 42d46e57ec97 ("selftests: Extract single-test shell logic from lib.mk")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/gen_kselftest_tar.sh
tools/testing/selftests/kselftest_install.sh