Skip to content

Commit

Permalink
fix: Return timeout and add monitor test
Browse files Browse the repository at this point in the history
  • Loading branch information
achxkloel committed Jan 25, 2024
1 parent 57c70b4 commit b233fc0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/hil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,18 @@ jobs:
echo "Current user: $(whoami)"
ls -l /dev/serial_ports
- name: flash test
env:
ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
ESPFLASH_APP: espflash/${{ matrix.board }}_app/hello_world
- name: monitor only test
shell: bash
run: |
espflash_app/espflash flash --monitor ${{ env.ESPFLASH_APP }} 2>&1
timeout 10s espflash_app/espflash monitor 2>&1
# - name: flash test
# env:
# ESPFLASH_PORT: /dev/serial_ports/${{ matrix.board }}
# ESPFLASH_APP: espflash/${{ matrix.board }}_app/hello_world
# shell: bash
# run: |
# timeout 10s espflash_app/espflash flash --monitor ${{ env.ESPFLASH_APP }} 2>&1

# if ! echo "$result" | grep -q "Flashing has completed!"; then
# if [[ $result == *"Flashing has completed!"* && $result == *"Hello world!"* ]]; then
Expand Down

0 comments on commit b233fc0

Please sign in to comment.