summaryrefslogtreecommitdiff
path: root/run-tests
diff options
context:
space:
mode:
authorMagnus Groß <21310755+vimpostor@users.noreply.github.com>2021-11-04 08:01:46 +0100
committerGitHub <noreply@github.com>2021-11-04 16:01:46 +0900
commitf37cd1fd4fc17173a98649d8a0b2f37ce7ba61cf (patch)
treea55caf91968f37e55289eb20155b7f0c01c0f953 /run-tests
parent92f08b5af2f6316312c95c5160c6e02b76370e04 (diff)
downloadale-f37cd1fd4fc17173a98649d8a0b2f37ce7ba61cf.zip
Make run-tests compatible with Podman (#3961)
There is no need to filter for references in such a complicated way. docker images already works if you just pass the image and tag as an argument. This caused problems if one was using podman with its docker-compatible interface. Previously podman would return the following error: Error: cannot specify an image and a filter(s) With this new method podman does not return an error anymore, causing the image to not be redownloaded every time and it still works with normal Docker.
Diffstat (limited to 'run-tests')
-rwxr-xr-xrun-tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests b/run-tests
index 6cfa3fae..a7bc313c 100755
--- a/run-tests
+++ b/run-tests
@@ -170,7 +170,7 @@ fi
find test -name '*.swp' -delete
# Check if docker un image is available locally
-has_image=$(docker images ls --filter reference="${image}:${image_tag}" --quiet | wc -l)
+has_image=$(docker images --quiet "${image}:${image_tag}" | wc -l)
if [ "$has_image" -eq 0 ]
then