Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/template_instantiation_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ find "$TEST_REPO_PATH" -type f \
sed -i "s|$placeholder|$value|g" "$file"
fi
done
' _ "$file"
' _ {} \;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 HIGH RISK

The variables $placeholder, $value, and $file used in the sh -c block will not be expanded because the command string is single-quoted. Additionally, the file found by find is passed as the first argument ($1); you must either assign it (e.g., file="$1") or use $1 directly in the sed command.

Try running the following prompt in your coding agent:

In tests/e2e/template_instantiation_test.sh, fix the find -exec command so that shell variables for placeholders and values are correctly passed into the subshell (e.g., as arguments $2, $3) and the file path from {} is correctly mapped to the variable used in the sed command.


log_pass "All placeholder tokens replaced"

Expand Down
Loading