Skip to contentSkip to conversation

selftests: tty: add tty_tiocsti_test to .gitignore

PATCH Superseded Gopi Krishna Menon 3 participants 7 messages Oct 24, 2025 – Oct 26, 2025

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

PATCH 1/1 selftests: tty: add tty_tiocsti_test to .gitignore

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact.

---
 tools/testing/selftests/tty/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tty/.gitignore +1 -0
index fe70462a4aad..2453685d2493 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+tty_tiocsti_test
 tty_tstamp_update
Signature · 1 line
2.43.0
#1 lore raw
Quoted 3 lines · Gopi Krishna Menon

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact.

Why do we want to ignore building this artifact? When submitting a patch, it is important to list "why" something is needed. Not just what is done.

tools/testing/selftests/tty/.gitignore line 3

Quoted 13 lines
---
 tools/testing/selftests/tty/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tty/.gitignore +1 -0
index fe70462a4aad..2453685d2493 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+tty_tiocsti_test
 tty_tstamp_update

Thanks,
David Hunter

#2 lore raw

PATCH v2 1/1 selftests: tty: add tty_tiocsti_test to .gitignore

Building the tty selftests generates the tty_tiocsti_test binary, which appears as untracked file in git. As mentioned in the kselftest documentation, all the generated objects must be placed inside .gitignore. This prevents the generated objects from accidentally getting staged and keeps the working tree clean.

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact and maintain a clean working tree.

---
Changelog:
- Improve the commit wording and explain clearly why this change is needed.

 tools/testing/selftests/tty/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tty/.gitignore +1 -0
index fe70462a4aad..2453685d2493 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+tty_tiocsti_test
 tty_tstamp_update
Signature · 1 line
2.43.0
maintainer
#3 lore raw
Quoted 32 lines · Gopi Krishna Menon

Building the tty selftests generates the tty_tiocsti_test binary, which appears as untracked file in git. As mentioned in the kselftest documentation, all the generated objects must be placed inside .gitignore. This prevents the generated objects from accidentally getting staged and keeps the working tree clean.

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact and maintain a clean working tree.

---
Changelog:
- Improve the commit wording and explain clearly why this change is needed.

 tools/testing/selftests/tty/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tty/.gitignore +1 -0
index fe70462a4aad..2453685d2493 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+tty_tiocsti_test
 tty_tstamp_update
Signature · 1 line
2.43.0

Shouldn't this go through the tty tree that added this test?

thanks,

greg k-h

#4 lore raw

PATCH v2 1/1 selftests: tty: add tty_tiocsti_test to .gitignore

Building the tty selftests generates the tty_tiocsti_test binary, which appears as untracked file in git. As mentioned in the kselftest documentation, all the generated objects must be placed inside .gitignore. This prevents the generated objects from accidentally getting staged and keeps the working tree clean.

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact and maintain a clean working tree.

---
Changelog:
- Improve the commit wording and explain clearly why this change is needed.

 tools/testing/selftests/tty/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tty/.gitignore +1 -0
index fe70462a4aad..2453685d2493 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+tty_tiocsti_test
 tty_tstamp_update
Signature · 1 line
2.43.0
maintainer
#5 lore raw
Quoted 9 lines · Gopi Krishna Menon

Building the tty selftests generates the tty_tiocsti_test binary, which appears as untracked file in git. As mentioned in the kselftest documentation, all the generated objects must be placed inside .gitignore. This prevents the generated objects from accidentally getting staged and keeps the working tree clean.

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact and maintain a clean working tree.

Quoted 7 lines

---
Changelog:
- Improve the commit wording and explain clearly why this change is needed.

What commit id does this fix?

thanks,

greg k-h

#6 lore raw

PATCH v3 1/1 selftests: tty: add tty_tiocsti_test to .gitignore

Building the tty selftests generates the tty_tiocsti_test binary, which appears as untracked file in git. As mentioned in the kselftest documentation, all the generated objects must be placed inside .gitignore. This prevents the generated objects from accidentally getting staged and keeps the working tree clean.

Add the tty_tiocsti_test binary to .gitignore to avoid accidentally staging the build artifact and maintain a clean working tree.

Fixes 7553f5173ec3 ("selftests/tty: add TIOCSTI test suite")

---
Changelog:
v3:
- Add fixes tag as suggested by Greg KH.
v2:
- Improve the commit wording and explain clearly why this change is needed.

 tools/testing/selftests/tty/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tty/.gitignore +1 -0
index fe70462a4aad..2453685d2493 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+tty_tiocsti_test
 tty_tstamp_update
Signature · 1 line
2.43.0