Explorar o código

Add extra environment args to docker test container

By setting EXTRA_DOCKER_RUN_FLAGS, for example to --loglevel debug
the user will be able to debug tests for failure analyzis
Olivier Bourdon %!s(int64=6) %!d(string=hai) anos
pai
achega
937a4208e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/test_helper.bash

+ 1 - 1
test/test_helper.bash

@@ -9,7 +9,7 @@ build_image() {
 }
 
 run_image() {
-  CONTAINER_ID=$(docker run $@ -d $IMAGE_NAME --copy-service -c "/container/service/slapd/test.sh")
+  CONTAINER_ID=$(docker run $@ -d $IMAGE_NAME --copy-service -c "/container/service/slapd/test.sh" $EXTRA_DOCKER_RUN_FLAGS)
   CONTAINER_IP=$(get_container_ip_by_cid $CONTAINER_ID)
 }