Skip to content

Commit

Permalink
Merge pull request #7819 from julek-wolfssl/mosq-tests-retry
Browse files Browse the repository at this point in the history
Retry mosquitto tests as they appear to be flaky
  • Loading branch information
dgarske authored Aug 1, 2024
2 parents 1b8254d + 4c86219 commit 16d0597
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/mosquitto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,14 @@ jobs:
- name: Run mosquitto tests
working-directory: ./mosquitto
run: |
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest
# Retry up to five times
for i in {1..5}; do
TEST_RES=0
make WITH_TLS=wolfssl WITH_CJSON=no WITH_DOCS=no WOLFSSLDIR=$GITHUB_WORKSPACE/build-dir ptest || TEST_RES=$?
if [ "$TEST_RES" -eq "0" ]; then
break
fi
done
if [ "$TEST_RES" -ne "0" ]; then
exit $TEST_RES
fi

0 comments on commit 16d0597

Please sign in to comment.