chiark / gitweb /
autopkgtests: t-pushed-good takes local branch name argument
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2013 18:22:36 +0000 (18:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Nov 2013 17:45:27 +0000 (17:45 +0000)
tests/lib
tests/tests/push-newpackage

index fb6059ba835d456cb0f795cfd0be535c5fd9e3fb..b9ce24be192486df55ee2da1ef064f03ace208d7 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -131,9 +131,10 @@ t-refs-notexist () {
 }
 
 t-pushed-good () {
 }
 
 t-pushed-good () {
+       local branch=$1
        t-ref-dsc-dgit
        t-refs-same-more \
        t-ref-dsc-dgit
        t-refs-same-more \
-               refs/heads/master \
+               refs/heads/$branch \
                refs/tags/debian/$v \
                refs/remotes/dgit/dgit/sid
        t-refs-notexist \
                refs/tags/debian/$v \
                refs/remotes/dgit/dgit/sid
        t-refs-notexist \
index 92c9361b863130a6b2ab920c5c7c708ee0b09453..3dfe0b58fadaa137c2142f98a82af85059fb8a84 100755 (executable)
@@ -19,6 +19,6 @@ echo y
 t-dgit build
 t-dgit push --new
 
 t-dgit build
 t-dgit push --new
 
-t-pushed-good
+t-pushed-good master
 
 echo ok.
 
 echo ok.