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
diff --git a/test/test_helper.bash b/test/test_helper.bash
index 45df68c..cc6bcdb 100644
--- a/test/test_helper.bash
+++ b/test/test_helper.bash
@@ -9,7 +9,7 @@
}
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)
}