diff options
author | root <root@cband> | 2014-01-07 09:12:29 -0600 |
---|---|---|
committer | root <root@cband> | 2014-01-07 09:12:36 -0600 |
commit | e0350203624556364dd240c1470c0faa0bc95160 (patch) | |
tree | 56f82b09c484635b4676817c47612be1e2fd72f4 /retiolum/t/docker/docker_boostrap.sh | |
parent | d80d739902ac45f6afdd3804e1ffe89d711d45e9 (diff) |
test:consider docker cleanup after use
Diffstat (limited to 'retiolum/t/docker/docker_boostrap.sh')
-rwxr-xr-x | retiolum/t/docker/docker_boostrap.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/retiolum/t/docker/docker_boostrap.sh b/retiolum/t/docker/docker_boostrap.sh index 7ae3fd36..82673dd4 100755 --- a/retiolum/t/docker/docker_boostrap.sh +++ b/retiolum/t/docker/docker_boostrap.sh @@ -1,3 +1,5 @@ #!/bin/sh cd $(dirname $(readlink -f $0)) -docker run -v $PWD/docker_tests/:/test ubuntu /bin/sh /test/bootstrap >/dev/null +docker_id=$(docker run -d -v $PWD/docker_tests/:/test ubuntu /bin/sh /test/bootstrap ) +trap "docker rm $docker_id" INT TERM EXIT QUIT +docker wait $docker_id |