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

L2SS-804: Update array assignment for shellcheck

parent 8f4ccfde
No related branches found
No related tags found
1 merge request!360L2SS-804: Modules using env for individual integration tests
...@@ -21,13 +21,13 @@ function usage { ...@@ -21,13 +21,13 @@ function usage {
# integration module or even specific tests # integration module or even specific tests
# integration_test module restarted_containers config_files specific_test # integration_test module restarted_containers config_files specific_test
function integration_test { function integration_test {
configs=($3) IFS=" " read -r -a restarts <<< "${2}"
restarts=($2) IFS=" " read -r -a configs <<< "${3}"
for config in "${configs[@]}"; do for config in "${configs[@]}"; do
bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${config}" bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${config}"
done done
if [ ! -z "${2+x}" ]; then if [ ! -z "${2+x}" ]; then
make restart ${restarts[*]} make restart "${restarts[@]}"
fi fi
sleep 5 sleep 5
make integration "${1}" make integration "${1}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment