diff mbox series

[PULL,5/5] docker: Clean dangling tarball files

Message ID 20180910035719.18056-6-famz@redhat.com
State New
Headers show
Series [PULL,1/5] docker: Sort Fedora packages | expand

Commit Message

Fam Zheng Sept. 10, 2018, 3:57 a.m. UTC
From: Philippe Mathieu-Daudé <f4bug@amsat.org>

When a container fails, it leaves a dangling tarball which name is
based on a timestamp. Further uses of make won't clean those files,
neither calling the 'docker-clean' target.

Use the .DELETE_ON_ERROR built-in target to let make remove those
temporary tarballs in case of failure.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180818030337.22271-1-f4bug@amsat.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
 tests/docker/Makefile.include | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index d3101afecd..6e03235ab9 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -25,6 +25,7 @@  IMAGES ?= %
 CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$)
 	@mkdir $@
 	$(if $(SRC_ARCHIVE), \