Clean up fully after successful Docker btests

If we leave files sitting around, we trigger a Docker image double-build in CI,
because the build runs once, gets tested, and then gets run again when we push
the Docker image: the additional btest files cause Docker to detect a different
source tree, causing an image layer violation.

Also rename "cleanup" target to "clean", to align with rest of our tree.
This commit is contained in:
Christian Kreibich 2021-11-16 15:02:05 -08:00
parent bdb5222c27
commit 1dd6c1d716

View file

@ -1,11 +1,11 @@
DIAG=diag.log
BTEST=../../auxil/btest/btest
all: cleanup btest-verbose
all: btest-verbose clean
# Showing all tests.
btest-verbose:
@$(BTEST) -d -j -f $(DIAG)
cleanup:
@rm -f $(DIAG)
clean:
@rm -rf $(DIAG) .tmp .btest.failed.dat