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

Add tests for merge_driver_ekeyword #50

Merged
merged 8 commits into from
Jun 24, 2024

Conversation

mattst88
Copy link
Contributor

@mattst88 mattst88 commented Jun 6, 2024

The initial commits are ready. The commits adding the unit tests are not. I'm still trying to figure out the right way of organizing them. Suggestions welcome.

cc: @thesamesam

mattst88 added 6 commits June 7, 2024 11:02
Has been dead since commit c819d14 in 2009.

Signed-off-by: Matt Turner <[email protected]>
Fixes: a667d93 ("bin/merge-driver-ekeyword: Look for KEYWORDS changes in upstream commit")
Signed-off-by: Matt Turner <[email protected]>
Makes unit testing easier.

Signed-off-by: Matt Turner <[email protected]>
To facilitate unit testing.

Signed-off-by: Matt Turner <[email protected]>
@mattst88 mattst88 force-pushed the merge-driver-ekeyword-tests branch from a255686 to c649f33 Compare June 7, 2024 15:03
mattst88 added 2 commits June 20, 2024 16:36
And provide a Makefile to generate the test data from gentoo.git.

Signed-off-by: Matt Turner <[email protected]>
@mattst88 mattst88 force-pushed the merge-driver-ekeyword-tests branch from c649f33 to 59a4f91 Compare June 20, 2024 20:37
@mattst88
Copy link
Contributor Author

I feel pretty good about the test coverage now.

The only wart is that the os.execlp causes the test to have to go out of its way to avoid hitting it and killing the pytest process.

@mattst88
Copy link
Contributor Author

cc: @mgorny, @thesamesam

Copy link
Member

@thesamesam thesamesam left a comment

Choose a reason for hiding this comment

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

Thank you!

@gentoo-bot gentoo-bot merged commit 59a4f91 into gentoo:master Jun 24, 2024
8 checks passed
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