chiark / gitweb /
test suite: lib-baredebian: Split up big function
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 29 Jun 2019 14:55:44 +0000 (15:55 +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 d3af727608e261e45071d84605b91231b84840dc..762e7e259b49b09ffba4b07c4b42fa1f3248d1f4 100644 (file)
@@ -1,16 +1,17 @@
 #
 
-baredebian-test () {
+baredebian-test-vars () {
        quiltmode=baredebian
+       v=1.0-1
+       suite=sid
+}
 
+baredebian-test-core () {
        t-expect-fail 'contradicts clean mode git-ff' \
        t-dgit -wgf --dgit-view-save=split.f1 --$quiltmode quilt-fixup
 
        t-dgit -wn --dgit-view-save=split.f1 --$quiltmode quilt-fixup
 
-       v=1.0-1
-       suite=sid
-
        tar --strip-components=1 -axf ../${p}_${v%-*}.orig.tar.*
 
        cd debian
@@ -64,3 +65,8 @@ baredebian-test () {
 
        t-splitbrain-pushed-good-end-made-dep14
 }
+
+baredebian-test () {
+       baredebian-test-vars
+       baredebian-test-core
+}