chiark / gitweb /
test suite: lib-baredebian: Break out $uvtag
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 10:11:50 +0000 (11:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 20:11:17 +0000 (21:11 +0100)
No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-baredebian

index 768b0d5cd400fe4f6000bd62512933d786115e38..f4ed4217bdcb9f9091c758ff1571b511f602fa1e 100644 (file)
@@ -5,6 +5,7 @@ baredebian-test-vars () {
        v=1.0-1
        suite=sid
        uv=${v%-*}
+       uvtag=v$uv
 }
 
 baredebian-test-core () {
@@ -47,9 +48,9 @@ baredebian-test-core () {
        t-dgit -wn --quilt=$quiltmode --dgit-view-save=split.b quilt-fixup
        t-dgit -wn --quilt=$quiltmode --dgit-view-save=split.p --new push
 
-       git merge-base --is-ancestor v$uv split.p
+       git merge-base --is-ancestor $uvtag split.p
        git merge-base --is-ancestor HEAD     split.p
-       set +e; git merge-base HEAD v$uv; rc=$?; set -e; [ $rc = 1 ]
+       set +e; git merge-base HEAD $uvtag; rc=$?; set -e; [ $rc = 1 ]
 
        git clean -xdff
        # t-pushed-good-* wants a clean tree to start with, but this