Skip to content

Commit

Permalink
Update dgoss (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
burkl authored and aelsabbahy committed Dec 18, 2019
1 parent 584b0f1 commit 7af6389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extras/dgoss/dgoss
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ case "$1" in
info "Found goss_wait.yaml, waiting for it to pass before running tests"
if [[ -z "${GOSS_VARS}" ]]; then
if ! docker exec "$id" sh -c "/goss/goss -g /goss/goss_wait.yaml validate $GOSS_WAIT_OPTS"; then
docker logs $id
docker logs $id >&2
error "goss_wait.yaml never passed"
fi
else
if ! docker exec "$id" sh -c "/goss/goss -g /goss/goss_wait.yaml --vars='/goss/${GOSS_VARS}' validate $GOSS_WAIT_OPTS"; then
docker logs $id
docker logs $id >&2
error "goss_wait.yaml never passed"
fi
fi
fi
[[ $GOSS_SLEEP ]] && { info "Sleeping for $GOSS_SLEEP"; sleep "$GOSS_SLEEP"; }
info "Container health"
if [ "true" != "$(docker inspect -f '{{.State.Running}}' $id)" ]; then
docker logs $id
docker logs $id >&2
error "the container failed to start"
fi
info "Running Tests"
Expand Down

0 comments on commit 7af6389

Please sign in to comment.