Skip to content

Commit

Permalink
Use space-separated strings instead of arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
jframos committed Dec 2, 2015
1 parent ff37d91 commit d289790
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fiware-region-sanity-tests/sanity_checks
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ REGIONS=$(sed -n '/"external_network_name"/,/}/ p' resources/settings.json \
REGIONS_PATTERN='^\('$(echo $REGIONS | sed 's/ /\\|/g')'\)$'
# Process command line
REGION_NAME_LIST=()
REGION_NAME_LIST=
OPTERR=
OPTSTR=$(echo :-:$OPTS | sed 's/([a-zA-Z0-9]*)//g')
OPTHLP=$(sed -n '20,/^$/ { s/$0/'$NAME'/; s/^#[ ]\?//p }' $0 | head -n -2;
Expand Down Expand Up @@ -132,7 +132,7 @@ while [ -z "$OPTERR" -a -n "$1" ]; do
REGION=$(expr "$1" : "$REGIONS_PATTERN" | sed 's/.*/\L&/')
[ -z "$REGION" ] && OPTERR="Invalid region '$1'"
TESTS="$TESTS tests.regions.test_$REGION"
REGION_NAME_LIST+=($REGION)
REGION_NAME_LIST="$REGION_NAME_LIST $REGION"
shift
done
[ -n "$OPTERR" ] && {
Expand All @@ -146,7 +146,7 @@ TESTS=${TESTS:-tests/regions}
# Delete all generated Nova Console-Log files for the given regions before each sanity check execution.
echo "Deleting Nova Console-Log files from previous executions for the given regions (${REGION_NAME_LIST[@]})"
for region in ${REGION_NAME_LIST[@]}; do
for region in $REGION_NAME_LIST; do
rm -f ${OUTPUT_NOVA_CONSOLE_NAME}_${region}_*.log
done
Expand Down

0 comments on commit d289790

Please sign in to comment.