diff options
| author | Ha Thach <[email protected]> | 2026-08-18 14:33:01 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-18 14:33:01 +0700 |
| commit | 11bdbc3eac085e4a946e25a8a614bcbf62e41fa2 (patch) | |
| tree | c592e9bfb7e097ca0cee9a47673bf6dd42545845 /.pre-commit-config.yaml | |
| parent | 2465ea8f435114af3b3c935cc4fbed423d9eac69 (diff) | |
| parent | c7290c4d3167766055f492de43f1ede83940e23c (diff) | |
Merge pull request #3803 from hathach/claude/hil-wedge-containment
hil, ci: contain a wedged USB stack instead of stranding the runner
Diffstat (limited to '.pre-commit-config.yaml')
| -rw-r--r-- | .pre-commit-config.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e87b935dd..3d9c8482b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,6 +48,27 @@ repos: types_or: [c, header] language: system + # Two hooks, split by what each suite actually reads. The full discovery run costs + # ~55s (deliberate hang/timeout simulations); only test_hil_select (~0.1s) reads + # hw/bsp (board.cmake), src (portable dirs + class include graph) and examples + # (tusb_config.h per test) -- renaming a board, port dir or example breaks it without + # touching test/hil, and catching that here beats waiting for pre-commit CI. + # No types_or: the rig rosters (*.json) are inputs too. + # examples/device/mtp/src is in scope: test_hil_bounded parses README_TXT_CONTENT + # and md5-checks the logo header from there as its MTP fixtures. + - id: hil-test + name: hil-test + files: ^(test/hil/|examples/device/mtp/src/) + entry: python3 -m unittest discover -s test/hil/test + pass_filenames: false + language: system + - id: hil-select-test + name: hil-select-test + files: ^(hw/bsp/|src/|examples/) + entry: python3 test/hil/test/test_hil_select.py + pass_filenames: false + language: system + # - id: build-fuzzer # name: build-fuzzer # files: ^(src/|test/fuzz/) |
