selftest/lkdtm: Use local .gitignore
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 27 Feb 2020 14:07:10 +0000 (14:07 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 2 Mar 2020 15:39:39 +0000 (08:39 -0700)
Commit 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'")
introduced patterns for git to ignore files generated in
tools/testing/selftests/lkdtm/

Use local .gitignore file instead of using the root one.

Fixes: 68ca0fd272da ("selftest/lkdtm: Don't pollute 'git status'")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
.gitignore
tools/testing/selftests/lkdtm/.gitignore [new file with mode: 0644]

index 2763fce..72ef86a 100644 (file)
@@ -100,10 +100,6 @@ modules.order
 /include/ksym/
 /arch/*/include/generated/
 
-# Generated lkdtm tests
-/tools/testing/selftests/lkdtm/*.sh
-!/tools/testing/selftests/lkdtm/run.sh
-
 # stgit generated dirs
 patches-*
 
diff --git a/tools/testing/selftests/lkdtm/.gitignore b/tools/testing/selftests/lkdtm/.gitignore
new file mode 100644 (file)
index 0000000..f262126
--- /dev/null
@@ -0,0 +1,2 @@
+*.sh
+!run.sh