chiark / gitweb /
Tests: Allow t-commit caller to specify whole version
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 29 Jun 2015 01:45:21 +0000 (02:45 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 29 Jun 2015 01:45:21 +0000 (02:45 +0100)
tests/lib

index e710f39..e048c60 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -461,11 +461,11 @@ t-apply-diff () {
 
 t-commit () {
        local msg=$1
-       v=1.$revision
+       v=${2-1.$revision}
        dch -v$v --distribution unstable "$1"
        git add debian/changelog
        debcommit
-       revision=$(( $revision + 1 ))
+       revision=$(( ${revision-0} + 1 ))
 }
 
 t-git-config () {