Diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 3 |
1 file changed, 3 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index 362ed45..bd6aad9 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -42,6 +42,9 @@ $(TESTS): pre-clean @'$(SHELL_PATH_SQ)' $@ $(CGIT_TEST_OPTS); \ status=$$?; echo $$status >test-results/$(@:.sh=.exit); exit $$status +# A script stopped by -i or --debug inside a test that takes permissions +# away can leave a directory that rm cannot descend into. .PHONY: clean clean: + @if test -d trash; then chmod -R u+rwx trash; fi $(RM) -r trash test-results |
