Skip to content

Commit 16d0597

Browse files
authored
Merge pull request #7819 from julek-wolfssl/mosq-tests-retry
Retry mosquitto tests as they appear to be flaky
2 parents 1b8254d + 4c86219 commit 16d0597

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/mosquitto.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,14 @@ jobs:
8080
- name: Run mosquitto tests
8181
working-directory: ./mosquitto
8282
run: |
83-
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest
83+
# Retry up to five times
84+
for i in {1..5}; do
85+
TEST_RES=0
86+
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest || TEST_RES=$?
87+
if [ "$TEST_RES" -eq "0" ]; then
88+
break
89+
fi
90+
done
91+
if [ "$TEST_RES" -ne "0" ]; then
92+
exit $TEST_RES
93+
fi

0 commit comments

Comments
 (0)