t/Makefile: remove 'test-results' on 'make clean'
commitd11b875197c7b8150136f94788330567dc5902d0
authorSZEDER Gábor <szeder.dev@gmail.com>
Tue, 20 Sep 2022 20:16:19 +0000 (20 22:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Sep 2022 18:32:13 +0000 (21 11:32 -0700)
treea55bf57b3849d829c680e07421090e609e5b19e1
parentdda7228a83e2e9ff584bf6adbf55910565b41e14
t/Makefile: remove 'test-results' on 'make clean'

The 't/test-results' directory and its contents are by-products of the
test process, so 'make clean' should remove them, but, alas, this has
been broken since fee65b194d (t/Makefile: don't remove test-results in
"clean-except-prove-cache", 2022-07-28).

The 'clean' target in 't/Makefile' was not directly responsible for
removing the 'test-results' directory, but relied on its dependency
'clean-except-prove-cache' to do that [1].  ee65b194d broke this,
because it only removed the 'rm -r test-results' command from the
'clean-except-prove-cache' target instead of moving it to the 'clean'
target, resulting in stray 't/test-results' directories.

Add that missing cleanup command to 't/Makefile', and to all
sub-Makefiles touched by that commit as well.

[1] 60f26f6348 (t/Makefile: retain cache t/.prove across prove runs,
                2012-05-02)

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/t/Makefile
t/Makefile