Skip to content

fix: --match-path is broken#7579

Merged
klkvr merged 2 commits intomasterfrom
klkvr/filter-strip-root
Apr 5, 2024
Merged

fix: --match-path is broken#7579
klkvr merged 2 commits intomasterfrom
klkvr/filter-strip-root

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
@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