Skip to contentSkip to conversation

selftests/nolibc: Avoid generated files being committed

PATCH In review Fernanda Ma'rouf 2 participants 2 messages Jul 19, 2022 – Jul 20, 2022

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

PATCH 1/1 selftests/nolibc: Avoid generated files being committed

After running the nolibc tests, the "git status" is not clean because the generated files are not ignored. Create a .gitignore inside the selftests/nolibc directory to ignore them.

Cc Ammar Faizi <[email protected]>
Cc Fernanda Ma'rouf <[email protected]>
---
 tools/testing/selftests/nolibc/.gitignore | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 tools/testing/selftests/nolibc/.gitignore
tools/testing/selftests/nolibc/.gitignore new file +4 -0
new file mode 100644
index 000000000000..4696df589d68
@@ -0,0 +1,4 @@
+/initramfs/
+/nolibc-test
+/run.out
+/sysroot/

base-commit: 1e93ece89dd1c6217b92ef6fc100df9ba202c30c

Signature · 1 line
Fernanda Ma'rouf
maintainer
#1 lore raw

Hi Fernanda,

Quoted 3 lines · Fernanda Ma'rouf

After running the nolibc tests, the "git status" is not clean because the generated files are not ignored. Create a .gitignore inside the selftests/nolibc directory to ignore them.

Ah thank you, I didn't know that .gitignore was per-directory, I though it was only at the top. Yes that's a nice improvement, I'll forward it to Paul as it's reasonable and not too late I think.

Thanks,
Willy