mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 14:42:58 +00:00
commit
09ae91700c
2
.github/workflows/build_esp.yml
vendored
2
.github/workflows/build_esp.yml
vendored
@ -8,6 +8,7 @@ on:
|
|||||||
- 'examples/**'
|
- 'examples/**'
|
||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'hw/**'
|
- 'hw/**'
|
||||||
|
- 'test/hil/**'
|
||||||
- '.github/workflows/build_esp.yml'
|
- '.github/workflows/build_esp.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
@ -16,6 +17,7 @@ on:
|
|||||||
- 'examples/**'
|
- 'examples/**'
|
||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'hw/**'
|
- 'hw/**'
|
||||||
|
- 'test/hil/**'
|
||||||
- '.github/workflows/build_esp.yml'
|
- '.github/workflows/build_esp.yml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
2
.github/workflows/build_iar.yml
vendored
2
.github/workflows/build_iar.yml
vendored
@ -9,6 +9,7 @@ on:
|
|||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'hw/**'
|
- 'hw/**'
|
||||||
- 'tools/get_deps.py'
|
- 'tools/get_deps.py'
|
||||||
|
- 'test/hil/**'
|
||||||
- '.github/workflows/build_iar.yml'
|
- '.github/workflows/build_iar.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
@ -18,6 +19,7 @@ on:
|
|||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'hw/**'
|
- 'hw/**'
|
||||||
- 'tools/get_deps.py'
|
- 'tools/get_deps.py'
|
||||||
|
- 'test/hil/**'
|
||||||
- '.github/workflows/build_iar.yml'
|
- '.github/workflows/build_iar.yml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
2
.github/workflows/cmake_arm.yml
vendored
2
.github/workflows/cmake_arm.yml
vendored
@ -8,6 +8,7 @@ on:
|
|||||||
- 'examples/**'
|
- 'examples/**'
|
||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'hw/**'
|
- 'hw/**'
|
||||||
|
- 'test/hil/**'
|
||||||
- 'tools/get_deps.py'
|
- 'tools/get_deps.py'
|
||||||
- '.github/workflows/cmake_arm.yml'
|
- '.github/workflows/cmake_arm.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -17,6 +18,7 @@ on:
|
|||||||
- 'examples/**'
|
- 'examples/**'
|
||||||
- 'lib/**'
|
- 'lib/**'
|
||||||
- 'hw/**'
|
- 'hw/**'
|
||||||
|
- 'test/hil/**'
|
||||||
- 'tools/get_deps.py'
|
- 'tools/get_deps.py'
|
||||||
- '.github/workflows/cmake_arm.yml'
|
- '.github/workflows/cmake_arm.yml'
|
||||||
|
|
||||||
|
@ -364,8 +364,15 @@ def main(config_file, board):
|
|||||||
|
|
||||||
print(f' {test} ...', end='')
|
print(f' {test} ...', end='')
|
||||||
|
|
||||||
# flash firmware
|
# flash firmware. It may fail randomly, retry a few times
|
||||||
ret = globals()[f'flash_{flasher}'](item, fw)
|
for i in range(3):
|
||||||
|
ret = globals()[f'flash_{flasher}'](item, fw)
|
||||||
|
if ret.returncode == 0:
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
print(f'Flashing failed, retry {i+1}')
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
assert ret.returncode == 0, 'Flash failed\n' + ret.stdout.decode()
|
assert ret.returncode == 0, 'Flash failed\n' + ret.stdout.decode()
|
||||||
|
|
||||||
# run test
|
# run test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user