Skip to content

Commit

Permalink
Skip docker build testing if CI system cannot pull an image
Browse files Browse the repository at this point in the history
  • Loading branch information
jhunkeler committed Jun 9, 2024
1 parent 3face13 commit 66fa178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_docker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 66fa178

Please sign in to comment.