chiark / gitweb /
git-debrebase: test suite: gdr-import-dgit: introduce nmu-upload (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 17 Feb 2018 12:30:39 +0000 (12:30 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Feb 2018 12:04:45 +0000 (12:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-import-dgit

index 1118ef063f9cb0baf67f0f198b7297e741c03d41..673da92f64dce1fed3d2f8c308bef5c9f9d00e4e 100755 (executable)
@@ -12,21 +12,25 @@ cd $p
 
 git checkout -b nmu
 
-v=2.0-2+num1
-t-dch-commit -v $v -m nmu
+nmu-upload () {
+       t-dch-commit -v $v -m nmu
+
+       t-some-changes nmu
 
-t-some-changes nmu
+       t-dch-commit -r sid
 
-t-dch-commit -r sid
+       t-dgit -wgf build-source
 
-t-dgit -wgf build-source
+       cd ..
+       c=${p}_${v}_source.changes
+       debsign -k39B13D8A $c
+       dput -c $tmp/dput.cf test-dummy $c
 
-cd ..
-c=${p}_${v}_source.changes
-debsign -k39B13D8A $c
-dput -c $tmp/dput.cf test-dummy $c
+       t-archive-process-incoming sid
+}
 
-t-archive-process-incoming sid
+v=2.0-2+num1
+nmu-upload
 
 : 'done the nmu, switching back to the maintainer hat'