chiark / gitweb /
Test suite: t-commit: honour $majorv for major version
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Aug 2016 11:09:32 +0000 (12:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Sep 2016 12:41:48 +0000 (13:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib

index 82ef7c2..9b8894e 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -654,7 +654,7 @@ t-gbp-example-prep () {
 
 t-commit () {
        local msg=$1
-       v=${2:-1.$revision}
+       v=${2:-${majorv:-1}.$revision}
        dch -v$v --distribution ${3:-unstable} "$1"
        git add debian/changelog
        debcommit