Integration tests: Allow running a custom image

Signed-off-by: Till Maas <opensource@till.name>
This commit is contained in:
Till Maas 2018-11-27 12:30:39 +01:00 committed by Edward Haas
parent 09c50b5693
commit c7b6516b38
2 changed files with 10 additions and 3 deletions

View File

@ -43,8 +43,15 @@ or running the scripts:
`debug_exit_shell=1 ./automation/run-integration-tests.sh`
After closing the shell, the container will be removed. Alternatively, the
following commands start the container manually:
After closing the shell, the container will be removed.
To specify a different container image for the tests, specify it with the
`DOCKER_IMAGE` variable:
`DOCKER_IMAGE=local/centos7-nmstate-dev debug_exit_shell=1 ./automation/run-integration-tests.sh`
Alternatively, the following commands start the container manually:
```
DOCKER_IMAGE="nmstate/centos7-nmstate-dev"

View File

@ -2,7 +2,7 @@
EXEC_PATH=$(dirname "$(realpath "$0")")
PROJECT_PATH="$(dirname $EXEC_PATH)"
DOCKER_IMAGE="nmstate/centos7-nmstate-dev"
: ${DOCKER_IMAGE:=nmstate/centos7-nmstate-dev}
EXPORT_DIR="$PWD/exported-artifacts"
CONT_EXPORT_DIR="/exported-artifacts"