From f2ccf9778091adddaf48f2cba791badbe8cc2de1 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Mon, 24 May 2021 17:22:02 +0800 Subject: [PATCH] chore(CI): fix relup tests error in enterprise repo --- .ci/fvt_tests/relup.lux | 11 ++++++----- .github/workflows/run_fvt_tests.yaml | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.ci/fvt_tests/relup.lux b/.ci/fvt_tests/relup.lux index 85b47bb60..cbecb9e14 100644 --- a/.ci/fvt_tests/relup.lux +++ b/.ci/fvt_tests/relup.lux @@ -1,3 +1,4 @@ +[config var=PROFILE] [config var=PACKAGE_PATH] [config var=BENCH_PATH] [config var=ONE_MORE_EMQX_PATH] @@ -21,7 +22,7 @@ [shell emqx] !cd $PACKAGE_PATH - !unzip -q -o emqx-ubuntu20.04-$(echo $old_vsn | sed -r 's/[v|e]//g')-amd64.zip + !unzip -q -o $PROFILE-ubuntu20.04-$(echo $old_vsn | sed -r 's/[v|e]//g')-amd64.zip ?SH-PROMPT !cd emqx @@ -33,8 +34,8 @@ [shell emqx2] !cd $PACKAGE_PATH - !cp -f $ONE_MORE_EMQX_PATH/one_more_emqx.sh . - !./one_more_emqx.sh emqx2 + !cp -f $ONE_MORE_EMQX_PATH/one_more_$(echo $PROFILE | sed 's/-/_/g').sh . + !./one_more_$(echo $PROFILE | sed 's/-/_/g').sh emqx2 ?SH-PROMPT !cd emqx2 @@ -75,7 +76,7 @@ ???sent [shell emqx] - !cp -f ../emqx-ubuntu20.04-$VSN-amd64.zip releases/ + !cp -f ../$PROFILE-ubuntu20.04-$VSN-amd64.zip releases/ !./bin/emqx install $VSN ?SH-PROMPT !./bin/emqx versions |grep permanent | grep -oE "[0-9].[0-9].[0-9]" @@ -90,7 +91,7 @@ ?SH-PROMPT [shell emqx2] - !cp -f ../emqx-ubuntu20.04-$VSN-amd64.zip releases/ + !cp -f ../$PROFILE-ubuntu20.04-$VSN-amd64.zip releases/ !./bin/emqx install $VSN ?SH-PROMPT !./bin/emqx versions |grep permanent | grep -oE "[0-9].[0-9].[0-9]" diff --git a/.github/workflows/run_fvt_tests.yaml b/.github/workflows/run_fvt_tests.yaml index 8ca1dc80f..12f9da95c 100644 --- a/.github/workflows/run_fvt_tests.yaml +++ b/.github/workflows/run_fvt_tests.yaml @@ -264,6 +264,7 @@ jobs: cp emqx/_upgrade_base/*.zip packages lux -v \ --timeout 600000 \ + --var PROFILE=$PROFILE \ --var PACKAGE_PATH=$(pwd)/packages \ --var BENCH_PATH=$(pwd)/emqtt-bench \ --var ONE_MORE_EMQX_PATH=$(pwd)/one_more_emqx \