chiark / gitweb /
autopkgtests: introduce t-v-tag to massage version number for git tag name
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2013 18:23:03 +0000 (18:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Nov 2013 17:45:27 +0000 (17:45 +0000)
tests/lib

index b9ce24b..3e1a5be 100644 (file)
--- 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
        )