test(gitea_runner): keep the newline after the fail-case touch
Build / build (pull_request) Successful in 14s
Lint / lint (pull_request) Successful in 48s
Molecule / molecule (pull_request) Canceled after 31s

trim_blocks removed the newline after the endif, so the touch and the
gate call ran as one command and the ps-fails case never reached the
gate. An inline expression keeps the line break.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-22 16:42:30 +00:00
1 parent e296eea609
commit 5de1e61bfd
1 file changed
+1 -1
@@ -137,7 +137,7 @@
cmd: |
rm -f /tmp/molecule-docker-fail
printf '%s' '{{ gitea_runner_test_case.ids }}' > /tmp/molecule-docker-ids
{% if gitea_runner_test_case.fail %}touch /tmp/molecule-docker-fail{% endif %}
{{ 'touch /tmp/molecule-docker-fail' if gitea_runner_test_case.fail else ':' }}
/usr/local/sbin/gitea-runner-docker-prune-gate 3600
loop:
- {name: none, ids: "", fail: false, rc: 0, out: ""}