test(gitea_runner): keep the newline after the fail-case touch
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:
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: ""}
|
||||
|
||||
Reference in new issue
Block a user