chiark / gitweb /
Test suite: lib-orig-include-exclude: Prepare for more reuse
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Oct 2016 15:32:12 +0000 (16:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 19:50:47 +0000 (19:50 +0000)
Support a suite argument to test-push-1 and dgit argument arguments to
test-push-2.  cd back to $tmp at the end.

No overall functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-orig-include-exclude

index 7c29c96..75a9656 100644 (file)
@@ -21,14 +21,15 @@ cd $p
 test-push-1 () {
        v=$1
        ch=$2
+       suite=$3
 
-       t-commit $v $v
+       t-commit $v $v $suite
        t-dgit $ch build
 }
 
 test-push-2 () {
        $test_push_2_hook
-       t-dgit $ch push
+       t-dgit $ch "$@" push
 }
 
 test-push-1 1.0-2 --ch:-sa
@@ -58,3 +59,4 @@ cd get
 t-dgit clone $p
 # ^ checks that all the origs are there, ie that dgit added the origs
 
+cd ..