diff --git a/run-tests.sh b/run-tests.sh index 6e09d5b..b8ebd4c 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -2,6 +2,7 @@ export VERBOSE=${VERBOSE:-} export COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME:-conlink-test} +export DOCKER_COMPOSE=${DOCKER_COMPOSE:-docker-compose} declare TEST_NUM=0 declare -A RESULTS declare PASS=0 @@ -9,7 +10,7 @@ declare FAIL=0 die() { echo >&2 "${*}"; exit 1; } vecho() { [ "${VERBOSE}" ] && echo "${*}" || true; } -dc() { docker-compose "${@}"; } +dc() { ${DOCKER_COMPOSE} "${@}"; } mdc() { ./mdc "${@}" || die "mdc invocation failed"; } dc_init() {