summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-11-17 18:22:36 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-11-24 17:45:27 +0000
commitd064fe28e62e45dca47b9925eac285e7b7becc5d (patch)
tree842704ffac680634b82d7cb0059d05b43bad0e4e /tests
parentdd869ec82e37459dcc52a3843f02c9fcceade085 (diff)
autopkgtests: t-pushed-good takes local branch name argument
Diffstat (limited to 'tests')
-rw-r--r--tests/lib3
-rwxr-xr-xtests/tests/push-newpackage2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib b/tests/lib
index fb6059b..b9ce24b 100644
--- a/tests/lib
+++ b/tests/lib
@@ -131,9 +131,10 @@ t-refs-notexist () {
}
t-pushed-good () {
+ local branch=$1
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 \
diff --git a/tests/tests/push-newpackage b/tests/tests/push-newpackage
index 92c9361..3dfe0b5 100755
--- a/tests/tests/push-newpackage
+++ b/tests/tests/push-newpackage
@@ -19,6 +19,6 @@ echo y
t-dgit build
t-dgit push --new
-t-pushed-good
+t-pushed-good master
echo ok.