summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeff Geerling <geerlingguy@mac.com>2017-04-01 15:53:03 -0500
committerJeff Geerling <geerlingguy@mac.com>2017-04-01 15:53:03 -0500
commit27b71feaa79024126033f4410205804b3c657399 (patch)
tree68f135d11a2d0e5a773b441aaf459de1b7e1f76d /tests
parent61cf403dd97e43c16e05dc0dd03694df1543574f (diff)
downloadntp-27b71feaa79024126033f4410205804b3c657399.tar.gz
ntp-27b71feaa79024126033f4410205804b3c657399.tar.bz2
ntp-27b71feaa79024126033f4410205804b3c657399.tar.xz
ntp-27b71feaa79024126033f4410205804b3c657399.zip
Optimize installation, make things work better.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test.sh b/tests/test.sh
index 5bc169b..e625951 100755
--- a/tests/test.sh
+++ b/tests/test.sh
@@ -53,8 +53,9 @@ fi
container_id=$(mktemp)
# Run the container using the supplied OS.
-printf ${green}"Pulling Docker container: geerlingguy/docker-$distro-ansible."${neutral}"\n"
-docker run --detach --volume="$PWD":/etc/ansible/roles/role_under_test:rw $run_opts geerlingguy/docker-$distro-ansible:latest "$init" > "$container_id"
+printf ${green}"Starting Docker container: geerlingguy/docker-$distro-ansible."${neutral}"\n"
+docker pull geerlingguy/docker-$distro-ansible:latest
+docker run --detach --volume="$PWD":/etc/ansible/roles/role_under_test:rw $opts geerlingguy/docker-$distro-ansible:latest $init > "$container_id"
container_id=$(cat $container_id)