From 74a743320fce90741580f4b8443daa00140c5d51 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 22 Jun 2020 17:42:26 +0200 Subject: [PATCH] TT#68855 check.sh: fix errors calling delete_location() * now it will be called *before* scenario is built * introduced at b006dee9f876ddf48fdd732ecf2beaae24fdbc44 TODO: move this external tool that can read scenario.yml info directly Change-Id: Ic85ceb2900ea137c96b7d3354d59439fa72a8a96 --- bin/check.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/check.sh b/bin/check.sh index 48987b15..18a7dbc8 100755 --- a/bin/check.sh +++ b/bin/check.sh @@ -251,6 +251,9 @@ delete_locations() { local sub for f in ${SCEN_CHECK_DIR}/callee.csv ${SCEN_CHECK_DIR}/caller.csv; do + if ! [ -f "$f" ] ; then + continue + fi for sub in $(uniq "${f}" | grep "${DOMAIN}" | cut -d\; -f1 | xargs); do ngcp-kamctl proxy fifo ul.rm location "${sub}@${DOMAIN}" >/dev/null # delete possible banned user