chiark / gitweb /
test suite: baredebian: Break out baredebian-tarball-mode
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 10:00:22 +0000 (11:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Jun 2019 20:11:18 +0000 (21:11 +0100)
No functional change.

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

index 368aa78ff1c2ae63b524329b516ef9ea2f37cfad..abec753af6c78f1ed8df7ddf12fc7b50518462ee 100644 (file)
@@ -8,6 +8,12 @@ baredebian-test-vars () {
        uvtag=v$uv
 }
 
+baredebian-tarball-mode () {
+       git tag -d $uvtag
+       uvtag=''
+       quiltmode=baredebian+tarball
+}
+
 baredebian-test-core () {
        t-expect-fail 'contradicts clean mode git-ff' \
        t-dgit -wgf --dgit-view-save=split.f1 --$quiltmode quilt-fixup
index 6b1a1b63904bdfa8bf02e8a63b8a9a2c5a51052c..7acd7b7e94b27948f95aa7a65feb34f52925c65c 100755 (executable)
@@ -10,10 +10,7 @@ t-tstunt-parsechangelog
 
 cd $p
 baredebian-test-vars
-
-quiltmode=baredebian+tarball
-git tag -d $uvtag
-uvtag=''
+baredebian-tarball-mode
 
 t-expect-fail 'Could not determine appropriate upstream commitish' \
 t-dgit -wn --dgit-view-save=split.g --baredebian quilt-fixup