Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: --match-path is broken #7579

Merged
merged 2 commits into from
Apr 5, 2024
Merged

fix: --match-path is broken #7579

merged 2 commits into from
Apr 5, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Apr 5, 2024

Motivation

Closes #7578

#7334 moved tests filtering to TestArgs::get_sources_to_compile which does not strip project root from paths opposed to MultiContractRunner which keeps them stripped. Thus, --match-path and --no-match-path filters are now broken.

Solution

Strip project root when filtering in ProjectPathsAwareFilter. Also added a test for this flag, it seems that we didn't have any

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice catch!

@mattsse mattsse added the T-bug Type: bug label Apr 5, 2024
@klkvr klkvr merged commit 5b0dc8c into master Apr 5, 2024
19 checks passed
@klkvr klkvr deleted the klkvr/filter-strip-root branch April 5, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

forge no longer finds test
2 participants