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 82ef7c269d2fb3b914644579ee7319c85e3ce7a3..9b8894ef74b60569b77c46da8753c5bab0474bd2 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