diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 4ad0d623a04d58df2c5174b3a5bbfc0845749a8b..43e5eff1171da8d69eb8897bea678bf90572570a 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -31,4 +31,4 @@ RUN rm -r /git/.git \ && mv /git/.docker/pycaosdb.ini /git/integrationtests RUN cd /git && pip3 install .[h5-crawler] WORKDIR /git/integrationtests -CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh +CMD /wait-for-it.sh caosdb-server:10443 -t 500 -- ./test.sh --force diff --git a/integrationtests/test.sh b/integrationtests/test.sh index 80a2afe307ab1da628faa39d4ba8ef93bc6959e4..5efd549551670d3a4581380271ac2aba4b80a10f 100755 --- a/integrationtests/test.sh +++ b/integrationtests/test.sh @@ -1,4 +1,18 @@ #!/bin/bash +if [ "$1" != "--force" ] +then + echo "Warning: For these tests, the whole database will be deleted. Do you want to proceed? (yes/Exit)" + read safety + if [ -z $safety ] + then + echo "Exiting..." + exit 0 + elif [ $safety != "yes" ] + then + echo "Exiting..." + exit 0 + fi +fi OUT=/tmp/crawler.output ls cat pycaosdb.ini