Skip to content

Commit 4322e31

Browse files
committed
Make it easier to look up error messages
tools/gen_esp_err_to_name.py generates components/esp32/esp_err_to_name.c for lookup of the error codes from all of the IDF project and easily identify all codes in one place
1 parent c3bec5b commit 4322e31

File tree

5 files changed

+793
-0
lines changed

5 files changed

+793
-0
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,17 @@ test_report:
319319
- git push origin master
320320
- test "${TEST_RESULT}" = "Pass" || exit 1
321321

322+
test_esp_err_to_name_on_host:
323+
stage: test
324+
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
325+
tags:
326+
- build
327+
dependencies: []
328+
script:
329+
- cd tools/
330+
- ./gen_esp_err_to_name.py
331+
- git diff --exit-code -- ../components/esp32/esp_err_to_name.c || (echo 'Differences found. Please run gen_esp_err_to_name.py and commit the changes.'; exit 1)
332+
322333
push_master_to_github:
323334
stage: deploy
324335
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG

0 commit comments

Comments
 (0)