From: Ian Jackson Date: Fri, 5 Aug 2016 19:37:32 +0000 (+0100) Subject: Test suite: t-commit: Permit specification of the suite in $3 X-Git-Tag: archive/debian/2.0~212 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=9243bf289e6ece2b20765a6cd850aab4c66f98e8 Test suite: t-commit: Permit specification of the suite in $3 This also means that we need to default $2 with ${2:-} since callers want need to pass an empty value for the version, to get the default. No functional change since none of the call sites use this yet. Signed-off-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index 914509ba..cebe10d9 100644 --- a/tests/lib +++ b/tests/lib @@ -593,8 +593,8 @@ t-gbp-example-prep () { t-commit () { local msg=$1 - v=${2-1.$revision} - dch -v$v --distribution unstable "$1" + v=${2:-1.$revision} + dch -v$v --distribution ${3:-unstable} "$1" git add debian/changelog debcommit revision=$(( ${revision-0} + 1 ))