Skip to content

Commit

Permalink
Fix: behave: adjust_test_case (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 17, 2024
1 parent 13965f0 commit fcd69a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/run-functional-tests
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,9 @@ adjust_test_case() {
fi
index=`echo $item_str|cut -d "." -f 3|tr -d "\r"`
if [ "$index" == "default" ];then
ip=`podman container inspect $node -f "{{range .NetworkSettings.Networks}}{{printf \"%s \" .$ip_search_str}}{{end}}"|awk '{print $1}'|tr -d "\r"`
else
ip=`podman container inspect $node -f "{{.NetworkSettings.Networks.${HA_NETWORK_ARRAY[$index]}.$ip_search_str}}"|tr -d "\r"`
index=0
fi
ip=`podman container inspect $node -f "{{.NetworkSettings.Networks.${HA_NETWORK_ARRAY[$index]}.$ip_search_str}}"|tr -d "\r"`
item=`echo $item|tr -d "\r"`
podman_exec $node_name "sed -i s/$item/$ip/g $2"
done
Expand Down

0 comments on commit fcd69a8

Please sign in to comment.