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
app-vim/jedi: Enabled tests #6103
Conversation
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Pull Request assignment Areas affected: ebuilds app-vim/jedi: |
src_compile() { :; } | ||
# Makefile tries hard to call tests so let's silence this phase, unless we are testing. | ||
src_compile() { | ||
if use test; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If tests only work with Python 3, please make sure to check that the Python implementation the user has chosen on his system in indeed Python 3. @mgorny wrote a function to perform this check called python_is_python3
. You need to add it to the if
clause:
if use test && python_is_python3; then
default;
else
:;
fi
Also, can we move this code to the src_test
phase? It would be more appropriate to run tests during this phase.
This ebuild isn't using |
I suggest converting to |
Or, if python is only used at build time, If python is only used for tests, having |
I'm digging further into this and it turns out test files are fetched from Github:
This is clearly not OK. We've got to patch @TheChymera do you want to do it? |
@monsieurp I currently don't have the time to further dig into this. I made the PR mainly to share the level I understood this atm and provide a reference for when I might get back to it. If you can patch this it would be really nice :) |
OK fine. Let me close this PR. I'm going to file a bug and link to here then. |
Ebuild improvement (not needing revbump):
.tar.gz
is prefferable to.zip
.The tests are a bit quirky, though. They are run my the make script of the package, and if we attempt to run them again via the ebuild phase they fail all over the place (they are somehow trying to pull in deps).
Also the tests are only pthon3 compatible, but they fail not contingent on the python USE flags, but ontingent on the first python selected via eselect :-/
@monsieurp
Package-Manager: Portage-2.3.13, Repoman-2.3.3