test(ci): dump haproxy logs if test failed

This commit is contained in:
Zaiming Shi 2021-08-10 16:39:45 +02:00 committed by Rory Z
parent 1a4f7f190d
commit 4abb3e65eb
1 changed files with 3 additions and 0 deletions

View File

@ -59,8 +59,11 @@ jobs:
- name: make paho tests
run: |
if ! docker exec -i python /scripts/pytest.sh; then
echo "DUMP_CONTAINER_LOGS_BGN"
docker logs haproxy
docker logs node1.emqx.io
docker logs node2.emqx.io
echo "DUMP_CONTAINER_LOGS_END"
exit 1
fi