diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index 21ce5df..be10bcd 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -658,7 +658,11 @@ case ${TEST_SUITE} in echo "Invalid -s option argument ${TEST_SUITE}" >&2 echo >&2 echo "${HELP}" >&2 - ${CONTAINER_BIN} network remove ${NETWORK} >/dev/null + if [ ${CONTAINER_BIN} = "docker" ]; then + ${CONTAINER_BIN} network rm ${NETWORK} >/dev/null + else + ${CONTAINER_BIN} network rm -f ${NETWORK} >/dev/null + fi exit 1 ;; esac