chiark / gitweb /
tests/tests/quilt: Reorganise loop into a function (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Nov 2014 20:32:22 +0000 (20:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Nov 2014 20:39:16 +0000 (20:39 +0000)
tests/tests/quilt

index 9a4b105..c9a50e9 100755 (executable)
@@ -19,9 +19,7 @@ git fetch $tmp/incoming/$p dgit/sid:incoming
 
 dummy=0
 
-for cherry in incoming~1 incoming~0; do
-       git cherry-pick -x $cherry
-
+iteration () {
        dummy=$(( $dummy + 1))
        v=3.2.6-2~dummy${dummy}
 
@@ -29,7 +27,10 @@ for cherry in incoming~1 incoming~0; do
        t-dgit --dpkg-buildpackage:-d build
        t-dgit push
        t-pushed-good dgit/sid
-done
+}
+
+git cherry-pick -x incoming~1; iteration
+git cherry-pick -x incoming~0; iteration
 
 t-822-field ../${p}_${v}_*.changes Changes |
  grep -Fx 'ruby-rails-3.2 (3.2.6-2~dummy1) unstable; urgency=low'