X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/075af058f0e618c0c7c0e45d6e36b7923b6e78f2..47784a4d10fa54b90893ee53b4491da9c439bcdf:/services/workbench2/tools/run-integration-tests.sh diff --git a/services/workbench2/tools/run-integration-tests.sh b/services/workbench2/tools/run-integration-tests.sh index ad2248ea7e..1435bc50d5 100755 --- a/services/workbench2/tools/run-integration-tests.sh +++ b/services/workbench2/tools/run-integration-tests.sh @@ -94,15 +94,17 @@ if [ ! -d "${ARVADOS_DIR}/.git" ]; then git clone https://git.arvados.org/arvados.git ${ARVADOS_DIR} || exit 1 fi -echo "Building & installing arvados-server..." -cd ${ARVADOS_DIR} -go mod download || exit 1 -cd cmd/arvados-server -go install -cd - - -echo "Installing dev dependencies..." -${GOPATH:-${HOME}/go}/bin/arvados-server install -type test || exit 1 +if [ ! -x ${GOPATH:-${HOME}/go}/bin/arvados-server ]; then + echo "Building & installing arvados-server..." + cd ${ARVADOS_DIR} + go mod download || exit 1 + cd cmd/arvados-server + go install + cd - + + echo "Installing dev dependencies..." + ${GOPATH:-${HOME}/go}/bin/arvados-server install -type test || exit 1 +fi echo "Launching arvados in test mode..." TMPSUBDIR=$(mktemp -d -p /tmp | cut -d \/ -f3) # Removes the /tmp/ part for the regex below