Skip to content

Conversation

@danmar
Copy link
Owner

@danmar danmar commented Nov 20, 2025

No description provided.

@firewave
Copy link
Collaborator

The ticket is assigned to me and I have not acted on this because the wanted behavior is not yet determined (see #7613). Also this needs to be tested across all the external files we are loading.

@firewave
Copy link
Collaborator

I have not acted on this because the wanted behavior is not yet determined (see #7613).

Ah sorry, that discussion was about CWD and this is related to PATH.

@danmar danmar marked this pull request as draft November 20, 2025 21:31
@danmar danmar marked this pull request as ready for review November 21, 2025 14:29
@sonarqubecloud
Copy link

@danmar
Copy link
Owner Author

danmar commented Nov 27, 2025

I feel I have taken care of your requests and that this fix problems to execute cppcheck. So I merge this.

@danmar danmar merged commit 996faff into danmar:main Nov 27, 2025
55 checks passed
Comment on lines +932 to +933
@pytest.mark.parametrize("type,file", [("addon", "misra.py"), ("config", "cppcheck.cfg"), ("library", "gnu.cfg"), ("platform", "avr8.xml")])
def test_lookup_path(tmpdir, type, file):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I asked you not to do this. And the readability of this test is beyond horrible. It is impossible to understand what this is testing. And there are no failing tests at all. The expected output is supposed to be identical for all types and that is not reflected at it. This is not usable for test-driven development of my future changes. I will post a PR as soon as I cauught up again.

Copy link
Owner Author

Choose a reason for hiding this comment

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

ok sure we can try to refactor it. I just fear that splitting it up is not ideal neither, this way we know PATH is tested for all variants. But yes I agree my test code is clumpsy..

@firewave
Copy link
Collaborator

I feel I have taken care of your requests and that this fix problems to execute cppcheck. So I merge this.

Sorry for not replying but I was occupied otherwise for a few days and then I got sick...

@danmar danmar deleted the fix-13645 branch November 30, 2025 16:07
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