summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-11-17 18:23:03 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-11-24 17:45:27 +0000
commit08b040602f3663733bf89289d0b63a3432ac0ac1 (patch)
treee68bfbb0be5644a737e45baa911a27922cab4534 /tests
parentd064fe28e62e45dca47b9925eac285e7b7becc5d (diff)
autopkgtests: introduce t-v-tag to massage version number for git tag name
Diffstat (limited to 'tests')
-rw-r--r--tests/lib8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib b/tests/lib
index b9ce24b..3e1a5be 100644
--- a/tests/lib
+++ b/tests/lib
@@ -130,12 +130,16 @@ t-refs-notexist () {
done
}
+t-v-tag () {
+ echo refs/tags/debian/${v//\~/_}
+}
+
t-pushed-good () {
local branch=$1
t-ref-dsc-dgit
t-refs-same-more \
refs/heads/$branch \
- refs/tags/debian/$v \
+ `t-v-tag` \
refs/remotes/dgit/dgit/sid
t-refs-notexist \
refs/heads/dgit/unstable \
@@ -143,7 +147,7 @@ t-pushed-good () {
(set -e; cd $tmp/git/$p.git
t-refs-same-more \
refs/dgit/sid \
- refs/tags/debian/$v
+ `t-v-tag`
t-refs-notexist \
refs/dgit/unstable
)