TT#116103 bin/provide_scenario.sh: fail if any command fails

Change-Id: Ie82a4913e9fdaf9819a0b4e763bbb9c028f95577
mr10.0
Victor Seva 5 years ago
parent 2dd31da127
commit 0c5b0f0ab1

@ -18,6 +18,7 @@
# On Debian systems, the complete text of the GNU General
# Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
#
set -e
# shellcheck disable=SC2155
declare -r ME="$(basename "$0")"
BASE_DIR="${BASE_DIR:-/usr/share/kamailio-config-tests}"
@ -233,7 +234,7 @@ scenario_csv() {
create() {
local DOMAIN=$1
delete "${DOMAIN}" # just to be sure nothing is there
delete "${DOMAIN}" || true # just to be sure nothing is there
scenario_csv "${DOMAIN}"
echo "$(date) - Creating ${DOMAIN}"
create_voip "${DOMAIN}"

Loading…
Cancel
Save