summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-11 16:43:36 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-09-13 12:01:39 +0100
commitef0b21be1845d69886bd84f402725e439fc928b4 (patch)
tree9cba3580ab766c7def3307089ef3c1d07415192e /tests
parent8c87a657236c64ff640589e2d27cb0b347f3691a (diff)
downloadmorph-ef0b21be1845d69886bd84f402725e439fc928b4.tar.gz
tests: Always use fixed git committer info
Move this into a script which can be sourced by the 'setup' scripts and the actual tests (this is needed as the environment in 'setup' is not passed on to the tests).
Diffstat (limited to 'tests')
-rwxr-xr-xtests/show-dependencies.setup14
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/show-dependencies.setup b/tests/show-dependencies.setup
index 76711987..e85c5ecf 100755
--- a/tests/show-dependencies.setup
+++ b/tests/show-dependencies.setup
@@ -17,19 +17,7 @@
set -e
-# Setting all these means that we will always create a repository
-# with identical commit sha1s
-
-GIT_AUTHOR_NAME="An Author"
-GIT_AUTHOR_EMAIL="an.author@test.org"
-GIT_AUTHOR_DATE="Thu, 07 Apr 2005 22:13:13 +0200"
-GIT_COMMITTER_NAME="An Committer"
-GIT_COMMITTER_EMAIL="a.committer@test.org"
-GIT_COMMITTER_DATE="Thu, 07 Apr 2005 22:13:13 +0200"
-
-export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE
-export GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE
-
+source "$SRCDIR/scripts/fix-committer-info"
# Create a repository
repo="$DATADIR/test-repo"