Skip to content

Commit 7b22b80

Browse files
[CI] Fix QEMU build on Ubuntu 22.04
ssh may return non-zero code on shutting down the connection. If the VM won't close properly it will fail in next stop of the workflow.
1 parent 134aafd commit 7b22b80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/reusable_qemu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ jobs:
124124
ssh [email protected] -p 2222 -t "sudo chown -R testuser:users /home/testuser"
125125
126126
ssh [email protected] -p 2222 -t "bash /home/testuser/scripts/qemu/run-build.sh COVERAGE"
127-
ssh [email protected] -p 2222 -t "sudo shutdown -h now"
127+
# ssh may return non-zero error code on closing the connection in Ubuntu 22.04
128+
ssh [email protected] -p 2222 -t "sudo shutdown -h now" || true
128129
129130
- name: Run tests in QEMU
130131
run: |
@@ -143,7 +144,8 @@ jobs:
143144
144145
ssh [email protected] -p 2222 -t "export SHORT_RUN=${SHORT_RUN} OS_FULL_NAME=${{matrix.os}} && /home/testuser/scripts/qemu/run-tests.sh COVERAGE ${config_name}"
145146
scp -r -P 2222 [email protected]:/home/testuser/coverage ./
146-
ssh [email protected] -p 2222 -t "sudo shutdown -h now"
147+
# ssh may return non-zero error code on closing the connection in Ubuntu 22.04
148+
ssh [email protected] -p 2222 -t "sudo shutdown -h now" || true
147149
done
148150
ls -al ./coverage
149151

0 commit comments

Comments
 (0)