diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-02 15:20:34 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-09-03 14:14:15 -0400 |
commit | 5166a47acb7e7b433f8d86dee7d4dbb86210e42b (patch) | |
tree | d79cddff25d466521632c20fe666acb91cea44f6 /unittests/allplatformstests.py | |
parent | 604088b5411460208357ac17f6fc565a591564cf (diff) | |
download | meson-5166a47acb7e7b433f8d86dee7d4dbb86210e42b.zip meson-5166a47acb7e7b433f8d86dee7d4dbb86210e42b.tar.gz meson-5166a47acb7e7b433f8d86dee7d4dbb86210e42b.tar.bz2 |
tests: when generating git repositories, make sure that pgpsign is off
I have a local configuration
tag.forcesignannotated=true
commit.gpgsign=true
This causes the tests to fail with e.g.
error: gpg failed to sign the data
fatal: failed to write commit object
Since this is a unittest, it is never wrong to tell git "just ignore
prior configuration, and disable all PGP signing".
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r-- | unittests/allplatformstests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 66b8bf4..bf90bed 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -101,7 +101,7 @@ def _git_init(project_dir): def _git_add_all(project_dir): subprocess.check_call('git add *', cwd=project_dir, shell=True, stdout=subprocess.DEVNULL) - subprocess.check_call(['git', 'commit', '-a', '-m', 'I am a project'], cwd=project_dir, + subprocess.check_call(['git', 'commit', '--no-gpg-sign', '-a', '-m', 'I am a project'], cwd=project_dir, stdout=subprocess.DEVNULL) class AllPlatformTests(BasePlatformTests): |