Skip to content

Added AssertiveComparisonChecker’s suppress_multidrive_messages suppo…#54

Open
xross wants to merge 1 commit into
xmos:developfrom
xross:fix/multidrive
Open

Added AssertiveComparisonChecker’s suppress_multidrive_messages suppo…#54
xross wants to merge 1 commit into
xmos:developfrom
xross:fix/multidrive

Conversation

@xross
Copy link
Copy Markdown
Contributor

@xross xross commented May 19, 2026

…rt/param to ComparisonChecker

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Ports the suppress_multidrive_messages parameter from AssertiveComparisonTester to ComparisonTester so that ComparisonTester can also filter out "Internal control pad and plugin driving in opposite directions" lines from the output before comparing against the golden reference.

Changes:

  • Adds suppress_multidrive_messages constructor parameter (default True) and stores it on self._smm.
  • Updates the run() loop to skip matching lines before applying user-provided ignore regex patterns.
  • Updates docstring and CHANGELOG.rst accordingly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lib/python/Pyxsim/testers.py New param, attribute, filtering branch and docstring update on ComparisonTester.
CHANGELOG.rst UNRELEASED entry documenting the new param.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ignore=[],
ordered=True,
verbosity=0,
suppress_multidrive_messages=True,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why does it default to True?
How is it enabled/disabled?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

its enabled by default in AssertiveComparisonCheckers so I matched it
Set in object creation.
I think there is an argument to make a single ComparisonChecker with an assertive param.

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.

3 participants