Skip to content

fix: man_tcl_check tests fail on count mismatch#9830

Open
oharboe wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
Pinata-Consulting:man-tcl-check-pipefail
Open

fix: man_tcl_check tests fail on count mismatch#9830
oharboe wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
Pinata-Consulting:man-tcl-check-pipefail

Conversation

@oharboe
Copy link
Collaborator

@oharboe oharboe commented Mar 19, 2026

Summary

  • Add sys.exit(1) to all 24 *_man_tcl_check.py scripts when help/proc/readme counts don't match
  • Add set -o pipefail to test/regression_test.sh so non-zero exit codes propagate through the tee pipe

Previously these tests passed even with mismatched counts because the .ok golden files encoded the broken state, and the pipe to tee swallowed the exit code.

Test plan

  • bazelisk test //src/drt/test:drt_man_tcl_check-py_test — PASSES (counts match)
  • bazelisk test //src/ant/test:ant_man_tcl_check-py_test — FAILS (counts don't match, as expected)
  • Existing regression tests still pass (pipefail should not affect passing tests)

🤖 Generated with Claude Code

Previously, man_tcl_check tests passed even when help/proc/readme
counts didn't match because .ok golden files encoded the broken
state. Add sys.exit(1) so the Python script exits non-zero on
mismatch, and add set -o pipefail to regression_test.sh so the
exit code propagates through the tee pipe.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@gemini-code-assist
Copy link
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants