Skip to content
Snippets Groups Projects
Commit 0da37e29 authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'L2SS-1447' into 'master'

L2SS-1447: Allow to skip tests, just setup integration env

Closes L2SS-1447

See merge request !745
parents cc3dff2c cd366d12
Branches
Tags
1 merge request!745L2SS-1447: Allow to skip tests, just setup integration env
...@@ -42,7 +42,7 @@ function integration_test { ...@@ -42,7 +42,7 @@ function integration_test {
} }
# list of arguments expected in the input # list of arguments expected in the input
optstring_long="help,no-build" optstring_long="help,no-build,skip-tests"
optstring="hnb" optstring="hnb"
options=$(getopt -l ${optstring_long} -o ${optstring} -- "$@") options=$(getopt -l ${optstring_long} -o ${optstring} -- "$@")
...@@ -60,6 +60,10 @@ while true; do ...@@ -60,6 +60,10 @@ while true; do
export no_build=1 export no_build=1
export NO_BASE=${no_build} export NO_BASE=${no_build}
;; ;;
--skip-tests)
echo "Only setup and configure environment don't run any tests"
export no_tests=1
;;
--) --)
shift shift
break;; break;;
...@@ -141,6 +145,10 @@ make start "${DEVICES[@]}" ...@@ -141,6 +145,10 @@ make start "${DEVICES[@]}"
# Wait for devices to restart # Wait for devices to restart
make await "${DEVICES[@]}" make await "${DEVICES[@]}"
if [ -n "${no_tests}" ]; then
exit 0
fi
# Start the integration test # Start the integration test
cd "$LOFAR20_DIR/docker-compose" || exit 1 cd "$LOFAR20_DIR/docker-compose" || exit 1
make up integration-test make up integration-test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment