From 5c4c655b3f83af243350b95400e31dc0c99b74a9 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Tue, 31 Oct 2023 10:43:43 -0500 Subject: [PATCH] Fix tests --- .github/workflows/mqtt-sn-check.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/mqtt-sn-check.yml b/.github/workflows/mqtt-sn-check.yml index e8d905212..fbbe4be84 100644 --- a/.github/workflows/mqtt-sn-check.yml +++ b/.github/workflows/mqtt-sn-check.yml @@ -43,7 +43,6 @@ jobs: - name: Run gateway working-directory: ./gateway/MQTTSNGateway/bin 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 @@ -89,5 +88,5 @@ jobs: - name: Show logs on failure if: failure() || cancelled() run: | - kill -2 $gateway_pid + kill -2 $(pgrep -f "MQTTSN-Gateway") cat ~/gateway.log