summaryrefslogtreecommitdiff
path: root/tests/cli.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cli.sh')
-rwxr-xr-xtests/cli.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/cli.sh b/tests/cli.sh
index 1dac04a..8727532 100755
--- a/tests/cli.sh
+++ b/tests/cli.sh
@@ -4433,8 +4433,12 @@ SHURIKEN_FAKE_CONTEXT_FILE="$context_file"
export SHURIKEN_FAKE_CONTEXT_FILE
serialize_template_render_context() {
- false
+ # Simulate a serializer that writes some output and then fails. The new
+ # implementation propagates this non-zero status explicitly (it no longer
+ # relies on a "| bash -euo pipefail" subprocess), so source_template_file
+ # must detect the failure, skip the render and clean up the context file.
printf 'partial_context=yes\n'
+ return 1
}
# shellcheck disable=SC2034
@@ -4518,8 +4522,12 @@ SHURIKEN_OUTPUT_MODE=quiet
apply_config_defaults
serialize_template_render_context() {
- false
+ # Simulate a serializer that writes some output and then fails. The new
+ # implementation propagates this non-zero status explicitly (it no longer
+ # relies on a "| bash -euo pipefail" subprocess), so source_template_file
+ # must detect the failure, skip the render and clean up the context file.
printf 'partial_context=yes\n'
+ return 1
}
if template preview out.html \