git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd16f0e
)
patman: Avoid touching the system or local config
author
Simon Glass
<sjg@chromium.org>
Sat, 10 May 2025 11:05:01 +0000
(13:05 +0200)
committer
Simon Glass
<sjg@chromium.org>
Tue, 27 May 2025 09:07:42 +0000
(10:07 +0100)
Set the git variables to ensure that any local gitconfig is not used or
affected by the tests.
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/test_common.py
patch
|
blob
|
history
diff --git
a/tools/patman/test_common.py
b/tools/patman/test_common.py
index
bc27b2d
..
7da995d
100644
(file)
--- a/
tools/patman/test_common.py
+++ b/
tools/patman/test_common.py
@@
-109,6
+109,9
@@
class TestCommon:
Returns:
pygit2.Repository: repository
"""
+ os.environ['GIT_CONFIG_GLOBAL'] = '/dev/null'
+ os.environ['GIT_CONFIG_SYSTEM'] = '/dev/null'
+
repo = pygit2.init_repository(self.gitdir)
self.repo = repo
new_tree = repo.TreeBuilder().write()