Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Oct 31, 2023
1 parent 5b0496a commit 3c4add1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/mqtt-sn-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
run: more gateway.conf
- name: Run gateway
working-directory: ./gateway/MQTTSNGateway/bin
run: sudo ./MQTT-SNGateway &
run: sudo ./MQTT-SNGateway &> ~/gateway.log &
gateway_pid=$!
sleep 1 # let the broker set everything up

# This is some debug info useful if something goes wrong
Expand Down Expand Up @@ -84,6 +85,10 @@ jobs:
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "\n\nMQTT-SN Client failed!" && exit 1

# Cleanup
- name: Stop gateway
run: kill -2 $gateway_pid

# capture logs on failure
- name: Show logs on failure
if: failure() || cancelled()
Expand Down

0 comments on commit 3c4add1

Please sign in to comment.