Skip to content

Commit 2d626b9

Browse files
committed
rm container after exit, fix mktemp order
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 7b1a650 commit 2d626b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bats/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ image:
4343
# cmdline args).
4444
.PHONY: tests
4545
tests: image
46-
mkdir -p tests-out && \
47-
export _RUNDIR=$(shell mktemp -p tests-out -d -t bats-tests-$$(date +%s)-XXXXX) && \
46+
@mkdir -p tests-out && \
47+
export _RUNDIR=$$(shell mktemp -p tests-out -d -t bats-tests-$$(date +%s)-XXXXX) && \
4848
docker run \
49+
--rm \
4950
-v /tmp:/tmp \
5051
-v $(CURDIR):/cwd \
5152
-v $(HOME)/.kube/:$(HOME)/.kube \

0 commit comments

Comments
 (0)