-
Notifications
You must be signed in to change notification settings - Fork 150
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
Isolate functional tests from user Git config #702
Conversation
This will allow to debug functional tests more easily.
scripts/run-functional-tests
Outdated
} | ||
|
||
isolate() { | ||
export GIT_CONFIG_GLOBAL='' | ||
export GIT_CONFIG_SYSTEM='' |
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.
I just found out we already hit that issue once in the past, but it was only fixed for the unittest
Makefile target. I think we should unify this and add an autouse fixture to unset the variables in tests/conftest.py
instead. This way the fix is also applied when one runs pytest
directly.
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.
Yes, this is a better way to fix that problem. I have updated the PR.
266b5e2
to
b984b46
Compare
d1089b6
to
3a9d9d9
Compare
Some users could have hooks defined in their Git template directory. The content of this directory is copied every time a repository is cloned or created. We have to isolate our functional tests to avoid the user Git config interferes with our tests.
3a9d9d9
to
f104968
Compare
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.
Looks good now, thanks.
Some users could have hooks defined in their Git template directory. The content of this directory is copied every time a repository is cloned or created. We have to isolate our functional tests to avoid the user Git config interferes with our tests.