Skip to content

Commit d9397ee

Browse files
committed
PMM-7: fix order and env variable
1 parent 2c19f3e commit d9397ee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/runner-pmm3-ovf-tests.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,16 @@ jobs:
128128
export OVF_NAME=$(find -type f -name '*.ovf')
129129
echo $OVF_NAME
130130
vboxmanage import $OVF_NAME --vsys 0 --vmname pmm-server
131-
vboxmanage modifyvm pmm-server --natpf1 "guestweb,tcp,127.0.0.1,80,$SERVER_IP,80"
132-
vboxmanage modifyvm pmm-server --natpf1 "guesthttps,tcp,127.0.01,443,$SERVER_IP,443"
133-
vboxmanage startvm "pmm-server" --type headless
131+
132+
vboxmanage startvm pmm-server --type headless
134133
sleep 60
135-
export SERVER_IP=$(vboxmanage guestproperty get pmm-server /VirtualBox/GuestInfo/Net/0/V4/IP | awk -F " " '{print $2}') >> $GITHUB_ENV
134+
echo "SERVER_IP=$(vboxmanage guestproperty get pmm-server /VirtualBox/GuestInfo/Net/0/V4/IP | awk -F " " '{print $2}')" >> $GITHUB_ENV
136135
echo "Server IP: "
137136
echo ${{ env.SERVER_IP }}
137+
vboxmanage controlvm pmm-server acpipowerbutton
138+
vboxmanage modifyvm pmm-server --natpf1 "guestweb,tcp,127.0.0.1,80,${{ env.SERVER_IP }},80"
139+
vboxmanage modifyvm pmm-server --natpf1 "guesthttps,tcp,127.0.01,443,${{ env.SERVER_IP }},443"
140+
vboxmanage startvm pmm-server --type headless
138141
139142
- name: Setup npm modules for e2e tests
140143
working-directory: ./pmm-ui-tests

0 commit comments

Comments
 (0)