summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/test/cmd/pkg.py9
-rw-r--r--lib/spack/spack/test/conftest.py9
2 files changed, 11 insertions, 7 deletions
diff --git a/lib/spack/spack/test/cmd/pkg.py b/lib/spack/spack/test/cmd/pkg.py
index fa324272bf..af634beffc 100644
--- a/lib/spack/spack/test/cmd/pkg.py
+++ b/lib/spack/spack/test/cmd/pkg.py
@@ -55,7 +55,8 @@ def mock_pkg_git_repo(tmpdir_factory):
git('add', '.')
git('config', 'user.email', 'testing@spack.io')
git('config', 'user.name', 'Spack Testing')
- git('commit', '-m', 'initial mock repo commit')
+ git('-c', 'commit.gpgsign=false', 'commit',
+ '-m', 'initial mock repo commit')
# add commit with pkg-a, pkg-b, pkg-c packages
mkdirp('pkg-a', 'pkg-b', 'pkg-c')
@@ -66,7 +67,8 @@ def mock_pkg_git_repo(tmpdir_factory):
with open('pkg-b/package.py', 'w') as f:
f.write(pkg_template.format(name='PkgC'))
git('add', 'pkg-a', 'pkg-b', 'pkg-c')
- git('commit', '-m', 'add pkg-a, pkg-b, pkg-c')
+ git('-c', 'commit.gpgsign=false', 'commit',
+ '-m', 'add pkg-a, pkg-b, pkg-c')
# remove pkg-c, add pkg-d
with open('pkg-b/package.py', 'a') as f:
@@ -77,7 +79,8 @@ def mock_pkg_git_repo(tmpdir_factory):
f.write(pkg_template.format(name='PkgD'))
git('add', 'pkg-d')
git('rm', '-rf', 'pkg-c')
- git('commit', '-m', 'change pkg-b, remove pkg-c, add pkg-d')
+ git('-c', 'commit.gpgsign=false', 'commit',
+ '-m', 'change pkg-b, remove pkg-c, add pkg-d')
with spack.repo.swap(mock_repo):
yield mock_repo_packages
diff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py
index 0e97b51cde..eb52c32bd3 100644
--- a/lib/spack/spack/test/conftest.py
+++ b/lib/spack/spack/test/conftest.py
@@ -867,7 +867,8 @@ def mock_git_repository(tmpdir_factory):
submodule_file = 'r0_file_{0}'.format(submodule_count)
repodir.ensure(submodule_file)
git('add', submodule_file)
- git('commit', '-m', 'mock-git-repo r0 {0}'.format(submodule_count))
+ git('-c', 'commit.gpgsign=false', 'commit',
+ '-m', 'mock-git-repo r0 {0}'.format(submodule_count))
tmpdir = tmpdir_factory.mktemp('mock-git-repo-dir')
tmpdir.ensure(spack.stage._source_path_subdir, dir=True)
@@ -887,7 +888,7 @@ def mock_git_repository(tmpdir_factory):
r0_file = 'r0_file'
repodir.ensure(r0_file)
git('add', r0_file)
- git('commit', '-m', 'mock-git-repo r0')
+ git('-c', 'commit.gpgsign=false', 'commit', '-m', 'mock-git-repo r0')
branch = 'test-branch'
branch_file = 'branch_file'
@@ -901,13 +902,13 @@ def mock_git_repository(tmpdir_factory):
git('checkout', branch)
repodir.ensure(branch_file)
git('add', branch_file)
- git('commit', '-m' 'r1 test branch')
+ git('-c', 'commit.gpgsign=false', 'commit', '-m' 'r1 test branch')
# Check out a second branch and tag it
git('checkout', tag_branch)
repodir.ensure(tag_file)
git('add', tag_file)
- git('commit', '-m' 'tag test branch')
+ git('-c', 'commit.gpgsign=false', 'commit', '-m' 'tag test branch')
tag = 'test-tag'
git('tag', tag)