From 9243bf289e6ece2b20765a6cd850aab4c66f98e8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Aug 2016 20:37:32 +0100 Subject: 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 --- tests/lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib b/tests/lib index 914509b..cebe10d 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 )) -- cgit v1.2.3