Skip to content

Commit

Permalink
test: fix execution
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin committed Oct 10, 2024
1 parent 14736a7 commit fb00cda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ jobs:
run: chmod +x ./ping_1d-armv7/ping_1d
- name: Run ping_1d test
run: |
timeout 30s ./ping_1d-armv7/ping_1d --serial-port /dev/ttyUSB_Ping1 || exit_code=$?
set +e
timeout 30s ./ping_1d-armv7/ping_1d --serial-port /dev/ttyUSB_Ping1
exit_code=$?
set -e
if [ $exit_code -eq 124 ]; then
echo "Test timed out after 30 seconds"
exit 1
Expand Down

0 comments on commit fb00cda

Please sign in to comment.