Browse Source

tests: Properly clean up .bak file from tests

One of our testcases creates a .bak file from invoking sed.  Fix that to be
removed by make clean, and also ignore it in git to avoid clutter.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
David Gibson 5 years ago
parent
commit
e4ce227e89
  1. 1
      .gitignore
  2. 2
      tests/Makefile.tests

1
.gitignore vendored

@ -4,6 +4,7 @@
*.patch *.patch
*.so *.so
*~ *~
*.bak
*.tab.[ch] *.tab.[ch]
lex.yy.c lex.yy.c
*.lex.c *.lex.c

2
tests/Makefile.tests

@ -49,7 +49,7 @@ TESTS_DEPFILES = $(TESTS:%=%.d) \
$(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d) $(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d)


TESTS_CLEANFILES_L = $(STD_CLEANFILES) \ TESTS_CLEANFILES_L = $(STD_CLEANFILES) \
*.dtb *.test.dts *.test.dt.yaml *.dtsv1 tmp.* \ *.dtb *.test.dts *.test.dt.yaml *.dtsv1 tmp.* *.bak \
dumptrees dumptrees
TESTS_CLEANFILES = $(TESTS) $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%) TESTS_CLEANFILES = $(TESTS) $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%)
TESTS_CLEANDIRS_L = fs TESTS_CLEANDIRS_L = fs

Loading…
Cancel
Save