X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f83fcd45b4b23db2bb5bb4afbe1e863ebd77ec6..4cd1503ba1b8b376816cb623b15e15a6e0dd8501:/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 367ccecd35..68d9e35760 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..." -~/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 @@ -110,8 +112,9 @@ TMPDIR=/tmp/${TMPSUBDIR} cp ${VOCABULARY_CONF} ${TMPDIR}/voc.json cp ${ARVADOS_CONF} ${TMPDIR}/arvados.yml sed -i "s/VocabularyPath: \".*\"/VocabularyPath: \"\/tmp\/${TMPSUBDIR}\/voc.json\"/" ${TMPDIR}/arvados.yml -coproc arvboot (~/go/bin/arvados-server boot \ +coproc arvboot (${GOPATH:-${HOME}/go}/bin/arvados-server boot \ -type test \ + -source "${ARVADOS_DIR}" \ -config ${TMPDIR}/arvados.yml \ -no-workbench1 \ -no-workbench2 \