From 9588a8e67017c5e859e6da5b5a0271712be78fad Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Aug 2016 20:34:13 +0100 Subject: Test suite: t-pushed-good: Support other suites Honour $2 being the suite codename, defaulting to sid. No functional change, since no-one passes this argument right now. Signed-off-by: Ian Jackson --- tests/lib | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/lib b/tests/lib index 5f41369..914509b 100644 --- a/tests/lib +++ b/tests/lib @@ -458,17 +458,18 @@ t-check-pushed-master () { t-pushed-good () { local branch=$1 + local suite=${2:-sid} t-ref-dsc-dgit t-refs-same \ refs/heads/$branch \ `t-v-tag` \ - refs/remotes/dgit/dgit/sid + refs/remotes/dgit/dgit/$suite t-refs-notexist \ refs/heads/dgit/unstable \ refs/remotes/dgit/dgit/unstable (set -e; cd $dgitrepo t-refs-same \ - refs/dgit/sid \ + refs/dgit/$suite \ `t-v-tag` ${t_check_pushed_master:- : NOT-DRS-NO-CHECK-PUSHED-MASTER} t-refs-notexist \ -- cgit v1.2.3