scripts/tests/rollingupgrade: fix rollingupgrade test

Fix logic that determines whether satellite has the marketing web server
based on version number.

Change-Id: I34df745d16acf1ce1478fe992448b18565e6d363
This commit is contained in:
Moby von Briesen 2021-02-08 19:40:56 -05:00
parent babe01f229
commit 520da5b1e4

View File

@ -270,7 +270,7 @@ setup_stage "${test_dir}" "${stage2_sat_version}" "${stage2_storagenode_versions
echo -e "\nRunning stage 2."
# Starting old satellite api in the background
has_marketing_server=$(echo $stage1_sat_version | awk 'BEGIN{FS="[v.]"} $2 == 1 && $3 <= 22 && $4 <= 1 || $2 == 0 {print $0}')
has_marketing_server=$(echo $stage1_sat_version | awk 'BEGIN{FS="[v.]"} ($2 == 1 && $3 <= 22) || $2 == 0 {print $0}')
if [ "$has_marketing_server" != "" ]; then
old_api_cmd="${test_dir}/local-network/satellite/0/old_satellite run api --config-dir ${test_dir}/local-network/satellite/0/ --debug.addr 127.0.0.1:30009 --server.address 127.0.0.1:30000 --server.private-address 127.0.0.1:30001 --console.address 127.0.0.1:30002 --marketing.address 127.0.0.1:30003 --marketing.static-dir $(version_dir ${stage1_sat_version})/web/marketing/"
else