aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-09 08:29:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-09 08:29:52 -0400
commit66fa17845664c772b6d2bc142526d5ac66bde4a2 (patch)
tree13270826e827cedc2820f711e3a9c91710559ebc /tests
parent3face13cc9e97a4b0080f5837c91a80740f8ae91 (diff)
downloadstasis-66fa17845664c772b6d2bc142526d5ac66bde4a2.tar.gz
Skip docker build testing if CI system cannot pull an image
Diffstat (limited to 'tests')
-rw-r--r--tests/test_docker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_docker.c b/tests/test_docker.c
index 0862a7d..eac385e 100644
--- a/tests/test_docker.c
+++ b/tests/test_docker.c
@@ -32,6 +32,8 @@ void test_docker_sanitize_tag() {
}
void test_docker_build_and_script_and_save() {
+ OMC_SKIP_IF(docker_exec("pull alpine:latest", OMC_DOCKER_QUIET), "unable to pull an image");
+
const char *dockerfile_contents = "FROM alpine:latest\nCMD [\"sh\", \"-l\"]\n";
mkdir("test_docker_build", 0755);
if (!pushd("test_docker_build")) {