docker: Clean dangling tarball files
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 18 Aug 2018 03:03:37 +0000 (00:03 -0300)
committerFam Zheng <famz@redhat.com>
Mon, 10 Sep 2018 03:50:06 +0000 (11:50 +0800)
commitb28ef6b9eb2401b9500c59cb32ff5fe43400f0be
tree493749f9a176b5e4412dc4de8056dab6f39ed392
parent25b8f085ac729bcea1e7b3a0aa9473d94292692e
docker: Clean dangling tarball files

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