diff options
author | Simon Glass <sjg@chromium.org> | 2025-05-08 05:02:07 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2025-05-27 10:07:42 +0100 |
commit | 8465b44cb517571cbf3c2ffb552d5c8c93f0e885 (patch) | |
tree | 080934b2ce3e1b6d5d7125fa28d27753ae48803f /tools/patman/func_test.py | |
parent | 3724cbade41a1dd0ec94cd9b511afe005ebf4804 (diff) |
patman: Use git to set up the test config
At present the branch information is dropped when writing the
configuration. It is easier to get git to set up the config anyway, so
update the test to do this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/func_test.py')
-rw-r--r-- | tools/patman/func_test.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index 61df82312ba..d055a7e5952 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -448,6 +448,11 @@ Changes in v2: self.repo = repo new_tree = repo.TreeBuilder().write() + common = ['git', f'--git-dir={self.gitdir}', 'config'] + tools.run(*(common + ['user.name', 'Dummy']), cwd=self.gitdir) + tools.run(*(common + ['user.email', 'dumdum@dummy.com']), + cwd=self.gitdir) + # pylint doesn't seem to find this # pylint: disable=E1101 author = pygit2.Signature('Test user', 'test@email.com') |