Skip to content

fix(test): normalize even nonzero negations - #4291

Open
tayfuryldz wants to merge 1 commit into
rtk-ai:developfrom
tayfuryldz:fix/4289-even-negation
Open

tayfuryldz wants to merge 1 commit into
rtk-ai:developfrom
tayfuryldz:fix/4289-even-negation

Conversation

@tayfuryldz

Copy link
Copy Markdown
Contributor

Fixes #4289. Normalizes any nonzero negation count to shell truth semantics. Adds double-negation regression coverage. Validation: cargo fmt and git diff --check passed; focused offline cargo test was attempted but did not complete promptly, so no local test pass is claimed.

@CLAassistant

CLAassistant commented Sep 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added bug Something isn't working tests labels Sep 26, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Fixes exit code normalization for negated test commands so that any nonzero number of negations produces shell truth semantics (0 or 1) instead of the wrapped command's raw exit status. Adds regression tests covering double-negation behavior.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #4289


Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk test does not normalise an even, non-zero negation count — returns the child's status where a shell returns 0/1

2 participants