Explorar el 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 hace 6 años
padre
commit
937a4208e6
Se han modificado 1 ficheros con 1 adiciones y 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)
 }