summaryrefslogtreecommitdiffstats
path: root/afm-test.native.sh
diff options
context:
space:
mode:
Diffstat (limited to 'afm-test.native.sh')
-rw-r--r--afm-test.native.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/afm-test.native.sh b/afm-test.native.sh
index e117ada..15be083 100644
--- a/afm-test.native.sh
+++ b/afm-test.native.sh
@@ -68,6 +68,9 @@ fi
TESTCFGFILE=$(find "${TESTPACKAGEDIR}" -name "aft-*.json" -print | head -n1)
TESTPROCNAME=$(grep '\"api\"' "${TESTCFGFILE}" | cut -d'"' -f4)
+[ -z "${TESTPROCNAME}" ] && \
+echo "Can't find 'api' key from your test configuration file: ${TESTCFGFILE}.\n Either configuration file doesn't exist either it is incorrect." && \
+cleanNexit 4
API=$(grep "provided-api" "${SERVICEPACKAGEDIR}/config.xml" -A1 2> /dev/null | sed -r -e '1d' -e 's:.*"(.*)" v.*:\1:' 2> /dev/null)
if [ -z "$API" ] && [ "$MODE" = "SERVICE" ]