Skip to content

Commit e50c880

Browse files
authored
Add timeout to HIL tests (#776)
* Add timeout to HIL tests * Increase timeout for save-image_write-bin test
1 parent 529b438 commit e50c880

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/hil.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,33 +85,33 @@ jobs:
8585
echo "$PWD/espflash_app" >> "$GITHUB_PATH"
8686
8787
- name: board-info test
88-
run: bash espflash/tests/scripts/board-info.sh
88+
run: timeout 10 bash espflash/tests/scripts/board-info.sh
8989

9090
- name: flash test
91-
run: bash espflash/tests/scripts/flash.sh ${{ matrix.board.mcu }}
91+
run: timeout 25 bash espflash/tests/scripts/flash.sh ${{ matrix.board.mcu }}
9292

9393
- name: monitor test
94-
run: bash espflash/tests/scripts/monitor.sh
94+
run: timeout 10 bash espflash/tests/scripts/monitor.sh
9595

9696
- name: erase-flash test
97-
run: bash espflash/tests/scripts/erase-flash.sh
97+
run: timeout 60 bash espflash/tests/scripts/erase-flash.sh
9898

9999
- name: save-image/write-bin test
100100
run: |
101-
bash espflash/tests/scripts/save-image_write-bin.sh ${{ matrix.board.mcu }}
102-
bash espflash/tests/scripts/monitor.sh
101+
timeout 60 bash espflash/tests/scripts/save-image_write-bin.sh ${{ matrix.board.mcu }}
102+
timeout 10 bash espflash/tests/scripts/monitor.sh
103103
104104
- name: erase-region test
105-
run: bash espflash/tests/scripts/erase-region.sh
105+
run: timeout 10 bash espflash/tests/scripts/erase-region.sh
106106

107107
- name: hold-in-reset test
108-
run: bash espflash/tests/scripts/hold-in-reset.sh
108+
run: timeout 5 bash espflash/tests/scripts/hold-in-reset.sh
109109

110-
- name: reset test
110+
- name: timeout 5 reset test
111111
run: bash espflash/tests/scripts/reset.sh
112112

113-
- name: checksum-md5 test
113+
- name: timeout 40 checksum-md5 test
114114
run: bash espflash/tests/scripts/checksum-md5.sh
115115

116-
- name: list-ports test
116+
- name: timeout 10 list-ports test
117117
run: bash espflash/tests/scripts/list-ports.sh

0 commit comments

Comments
 (0)