chiark / gitweb /
test suite: lib-baredebian: Split up big function
[dgit.git] / tests / lib-baredebian
index c9fc44f7f369f2aef3a43730a5118a3f5f418a2b..762e7e259b49b09ffba4b07c4b42fa1f3248d1f4 100644 (file)
@@ -1,14 +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
@@ -62,3 +65,8 @@ baredebian-test () {
 
        t-splitbrain-pushed-good-end-made-dep14
 }
+
+baredebian-test () {
+       baredebian-test-vars
+       baredebian-test-core
+}