summaryrefslogtreecommitdiff
path: root/run-tests
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-04 09:36:37 +0100
committerw0rp <devw0rp@gmail.com>2018-07-04 09:36:37 +0100
commit00a385930476a8244f7099345448d0afcac0ac31 (patch)
tree65bbf68d307ccf2099a5c1b0ed3b5460b9ee5b39 /run-tests
parentca7fa31c619e9f259dd39eadc3b4b2c5bbaa4eba (diff)
downloadale-00a385930476a8244f7099345448d0afcac0ac31.zip
Fix how Docker images are pulled for developers
Diffstat (limited to 'run-tests')
-rwxr-xr-xrun-tests6
1 files changed, 3 insertions, 3 deletions
diff --git a/run-tests b/run-tests
index 8bcb236c..0463c8ff 100755
--- a/run-tests
+++ b/run-tests
@@ -11,10 +11,9 @@ set -u
image=w0rp/ale
current_image_id=71553d0ab3e8
-current_digest=sha256:fea0ddf220c080af9d615d86c277cdecbd63682e430cba92fff2014ebf2a5f3a
# Used in all test scripts for running the selected Docker image.
-DOCKER_RUN_IMAGE="$image:$current_image_id"
+DOCKER_RUN_IMAGE="$image"
export DOCKER_RUN_IMAGE
tests='test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*.vader'
@@ -110,7 +109,8 @@ fi
# Delete .swp files in the test directory, which cause Vim 8 to hang.
find test -name '*.swp' -delete
-docker pull "$image"@"$current_digest"
+docker images -q w0rp/ale | grep "^$current_image_id" > /dev/null \
+ || docker pull "$image"
output_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')