X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/5385afcada8666051658c6889c83848702497759..ca3047891da01be64c1b1ac558fb57e7c477278c:/tools/run-integration-tests.sh diff --git a/tools/run-integration-tests.sh b/tools/run-integration-tests.sh index fbc456bd..bf4c3ba4 100755 --- a/tools/run-integration-tests.sh +++ b/tools/run-integration-tests.sh @@ -70,6 +70,7 @@ echo "ARVADOS_DIR is ${ARVADOS_DIR}" ARVADOS_LOG=${ARVADOS_DIR}/arvados.log ARVADOS_CONF=${WB2_DIR}/tools/arvados_config.yml +VOCABULARY_CONF=${WB2_DIR}/tools/example-vocabulary.json if [ ! -f "${WB2_DIR}/src/index.tsx" ]; then echo "ERROR: '${WB2_DIR}' isn't workbench2's directory" @@ -104,9 +105,13 @@ echo "Installing dev dependencies..." ~/go/bin/arvados-server install -type test || exit 1 echo "Launching arvados in test mode..." +VOC_DIR=$(mktemp -d | cut -d \/ -f3) # Removes the /tmp/ part +cp ${VOCABULARY_CONF} /tmp/${VOC_DIR}/voc.json +sed -i "s/VocabularyPath: \".*\"/VocabularyPath: \"\/tmp\/${VOC_DIR}\/voc.json\"/" ${ARVADOS_CONF} coproc arvboot (~/go/bin/arvados-server boot \ -type test \ -config ${ARVADOS_CONF} \ + -no-workbench1 \ -own-temporary-database \ -timeout 20m 2> ${ARVADOS_LOG}) trap cleanup ERR EXIT