Merge pull request #8285 from zmstone/0621-fix-relup-test-for-package-build

ci: fix relup test for package build
This commit is contained in:
Zaiming (Stone) Shi 2022-06-21 10:42:21 +01:00 committed by GitHub
commit 1cac9064c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -238,9 +238,9 @@ relup_test(){
fi
./emqx/bin/emqx_ctl status
./emqx/bin/emqx versions
cp "$PACKAGE_FILE" ./emqx/releases/
cp "${PACKAGE_PATH}/${PACKAGE_NAME}.tar.gz" ./emqx/releases/
./emqx/bin/emqx install "${PACKAGE_VERSION}"
[ "$(./emqx/bin/emqx versions |grep permanent | awk '{print $2}')" = "${PACKAGE_VERSION}" ] || exit 1
[ "$(./emqx/bin/emqx versions | grep permanent | awk '{print $2}')" = "${PACKAGE_VERSION}" ] || exit 1
./emqx/bin/emqx_ctl status
./emqx/bin/emqx stop
rm -rf emqx