Skip to content

Commit

Permalink
fix: Check timed out return code, set shell
Browse files Browse the repository at this point in the history
  • Loading branch information
achxkloel committed Jan 31, 2024
1 parent c2cf048 commit 78bd8b2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/hil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ jobs:
- name: board-info test
env:
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
shell: bash
run: |
result=$(espflash_app/espflash board-info 2>&1)
echo "$result"
Expand Down Expand Up @@ -156,18 +157,26 @@ jobs:
fi
if ! echo "$result" | grep -q "Flashing has completed!"; then
exit 1
ret=1
fi
exit $ret
- name: cat serial port
env:
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
shell: bash
run: |
result=$(timeout 5s cat ${{ env.ESPFLASH_PORT }})
echo "$result"
ret=$?
if [[ $ret -eq 124 ]]; then
ret=0
fi
if ! echo "$result" | grep -q "Hello world!"; then
exit 1
ret=1
fi
exit $ret

0 comments on commit 78bd8b2

Please sign in to comment.