ci: refactor tests package test script

Check suffix directly, and fix indentation
This commit is contained in:
Zaiming (Stone) Shi 2021-12-31 14:30:30 +01:00
parent feecaa6c98
commit d69ba4b775
1 changed files with 68 additions and 70 deletions

View File

@ -69,8 +69,7 @@ emqx_prepare(){
emqx_test(){ emqx_test(){
cd "${PACKAGE_PATH}" cd "${PACKAGE_PATH}"
local packagename="${PACKAGE_FILE_NAME}" local packagename="${PACKAGE_FILE_NAME}"
case "$PKG_SUFFIX" in
case ${packagename##*.} in
"zip") "zip")
unzip -q "${PACKAGE_PATH}/${packagename}" unzip -q "${PACKAGE_PATH}/${packagename}"
export EMQX_ZONE__EXTERNAL__SERVER__KEEPALIVE=60 \ export EMQX_ZONE__EXTERNAL__SERVER__KEEPALIVE=60 \
@ -147,7 +146,6 @@ emqx_test(){
exit 1 exit 1
fi fi
;; ;;
esac esac
} }