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 11:37:30 +0000 (12:37 +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 1ab5fce8d66849aac3cfdfb447f71e21bd55382a..acd5a55537acb02ac0adbb9398d6171cbc0c4aaf 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