From e0350203624556364dd240c1470c0faa0bc95160 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Jan 2014 09:12:29 -0600 Subject: test:consider docker cleanup after use --- ship/t/docker/docker_remote_punani.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ship/t/docker/docker_remote_punani.sh') diff --git a/ship/t/docker/docker_remote_punani.sh b/ship/t/docker/docker_remote_punani.sh index 76e34068..1eab1a42 100755 --- a/ship/t/docker/docker_remote_punani.sh +++ b/ship/t/docker/docker_remote_punani.sh @@ -1,3 +1,5 @@ #!/bin/sh cd $(dirname $(readlink -f $0)) -docker run -v $PWD/punani/:/test ubuntu /bin/sh /test/remote_punani >/dev/null +docker_id=$(docker run -d -v $PWD/punani/:/test ubuntu /bin/sh /test/remote_punani) +trap "docker rm $docker_id" INT TERM EXIT QUIT +docker wait $docker_id -- cgit v1.2.3