Skip to content

Commit b26b2be

Browse files
committed
Swallow every non-zero exit code other than 101 as AppInspect doesn't follow UNIX conventions
1 parent 3bce54e commit b26b2be

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/actions/run-appinspect/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,11 @@ runs:
1919
tar -czf mock_app.tgz --exclude="__pycache__" bin default metadata
2020
- name: Validate the mock app with AppInspect
2121
shell: bash
22-
run: uvx splunk-appinspect inspect ./tests/system/test_apps/generating_app/mock_app.tgz --included-tags cloud --ci
22+
run: |
23+
# AppInspect doesn't follow UNIX conventions so we swallow all non-zero
24+
# exit codes unless its 101, the de facto error code
25+
# https://dev.splunk.com/enterprise/reference/appinspect/appinspectcliref#inspect
26+
uvx splunk-appinspect inspect \
27+
./tests/system/test_apps/generating_app/mock_app.tgz \
28+
--included-tags cloud --ci || exit_code=$?
29+
[ "${exit_code:-0}" -ne 101 ] || exit 1

0 commit comments

Comments
 (0)