Skip to contentSkip to conversation

Correct .gitignore in several places for kselftest outputs

PATCH In review Erik Hollensbe 3 participants 6 messages Jan 28, 2021 – Feb 9, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Sincerely hope I did this right; first time contributor, learning the patch workflow. I took the opportunity to fix two .gitignore files that were leaving stale worktree/index outputs after running make kselftest against recent mainline (76c057c84d286140c6c416c3b4ba832cd1d8984e).

Thanks for your time!

#1 lore raw

PATCH 1/1 Correct leftover directories from make kselftest

Here are some directories that are created/filled as a part of the make kselftest process, but not ignored.

---
 tools/testing/selftests/gpio/.gitignore   | 1 +
 tools/testing/selftests/timens/.gitignore | 1 +
 2 files changed, 2 insertions(+)
tools/testing/selftests/gpio/.gitignore +1 -0
index 4c69408f3e84..640b5cb4ed4e 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 gpio-mockup-chardev
+tools-gpio
tools/testing/selftests/timens/.gitignore +1 -0
index 2e43851b47c1..95e97d7bc336 100644
@@ -7,3 +7,4 @@ procfs
 timens
 timer
 timerfd
+futex
Signature · 1 line
2.25.1
maintainer
#2 lore raw

Re: [PATCH] Correct leftover directories from make kselftest

Quoted 23 lines · Erik Hollensbe

Here are some directories that are created/filled as a part of the make kselftest process, but not ignored.

---
  tools/testing/selftests/gpio/.gitignore   | 1 +
  tools/testing/selftests/timens/.gitignore | 1 +
  2 files changed, 2 insertions(+)
tools/testing/selftests/gpio/.gitignore +1 -0
index 4c69408f3e84..640b5cb4ed4e 100644
@@ -1,2 +1,3 @@
  # SPDX-License-Identifier: GPL-2.0-only
  gpio-mockup-chardev
+tools-gpio
tools/testing/selftests/timens/.gitignore +0 -0
index 2e43851b47c1..95e97d7bc336 100644

tools/testing/selftests/timens/.gitignore procfs · line 10

Quoted 4 lines
tools/testing/selftests/timens/.gitignore +1 -0
@@ -7,3 +7,4 @@ procfs
  timens
  timer
  timerfd
+futex

Thank you for the patch.

Can you split these into two patches? make separate patches for gpio and timens.

Gives you more practice. :)

thanks,
-- Shuah

maintainer
#3 lore raw

Re: [PATCH] Correct leftover directories from make kselftest

Quoted 31 lines · Shuah Khan
Quoted 22 lines · Erik Hollensbe

Here are some directories that are created/filled as a part of the make kselftest process, but not ignored.

---
  tools/testing/selftests/gpio/.gitignore   | 1 +
  tools/testing/selftests/timens/.gitignore | 1 +

  2 files changed, 2 insertions(+)
tools/testing/selftests/gpio/.gitignore +0 -0
index 4c69408f3e84..640b5cb4ed4e 100644
@@ -1,2 +1,3 @@
   # SPDX-License-Identifier: GPL-2.0-only

  gpio-mockup-chardev

tools/testing/selftests/gpio/.gitignore +1 -0
+tools-gpio
tools/testing/selftests/timens/.gitignore +0 -0
index 2e43851b47c1..95e97d7bc336 100644
@@ -7,3 +7,4 @@ procfs
Quoted 5 lines

  timens
  timer
  timerfd
+futex

Thank you for the patch.

Quoted 3 lines

Can you split these into two patches? make separate patches for gpio and timens.

Please send me just the gpio patch. I already applied this patch that fixes timens .gitignore.

https://patchwork.kernel.org/project/linux-kselftest/patch/[email protected]/

thanks,
-- Shuah

#4 lore raw

PATCH 1/1 selftests/gpio: Adjust .gitignore to ignore tools-gpio build dir

In reply to Shuah Khan

This patch merely add this to gitignore, noticed while running the selftests.

---
 tools/testing/selftests/gpio/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/gpio/.gitignore +1 -0
index 4c69408f3e84..640b5cb4ed4e 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
 gpio-mockup-chardev
+tools-gpio
Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH] Correct leftover directories from make kselftest

In reply to Shuah Khan
Quoted 6 lines · Shuah Khan

Thank you for the patch.

Can you split these into two patches? make separate patches for gpio and timens.

Gives you more practice. :)

I sent one for gpio; under a different email address (this one), it does reference the initial patch, however.

Hope that works. Thanks for letting me practice! :D

-Erik