test/help-intercept.bats uses a non-final '! grep -q', which bats does not check #613
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#613
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in IW-606 phase 1.
test/help-intercept.bats(lines 114 and 189) asserts! grep -q "phase_merged" ...as a statement that is not the last one in the test. Bash exempts a command negated with a leading!fromerrexit, so bats does not fail the test whengrepfinds a match. The assertion can never fail.PROPOSED FIX. Rewrite each one as
[[ "$output" != *"phase_merged"* ]], or another construct that aborts the test on a mismatch.Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-613/analysis.md on branch IW-613