summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-17 15:37:07 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-31 22:55:01 +0100
commit8eb4d3531c65dc7afa2bbfe56d535faa756da073 (patch)
tree9f70408170cfc0712d6fee9ea960466668b19391 /tests/lib
parent8a178bf100d49ad948f5f3ec5540da1ff9c74c3e (diff)
Tag change: Test suite: Introduce $tagpfx
Currently this is `test-dummy' (the distro the tests work with). Have checked that after this commit find tests -type f | xargs perl -i~ -pe 's/\$tagpfx/test-dummy/g' puts everything back. (This does not prove I have changed the right set of occurrences, but it does suggest that each actual change is good.) No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index 7b7bcfb..4bdd1e8 100644
--- a/tests/lib
+++ b/tests/lib
@@ -62,6 +62,8 @@ incoming = $tmp/incoming
run_dinstall = 0
END
+: ${tagpfx:=test-dummy}
+
t-git-next-date () {
GIT_COMMITTER_DATE="$(( ${GIT_COMMITTER_DATE%% *} + 1 )) ${GIT_COMMITTER_DATE#* }"
GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE"
@@ -427,7 +429,7 @@ t-refs-notexist () {
}
t-v-tag () {
- echo refs/tags/test-dummy/${v//\~/_}
+ echo refs/tags/$tagpfx/${v//\~/_}
}
t-check-pushed-master () {