summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2019-06-04 13:49:36 +0200
committerChristian Hesse <mail@eworm.de>2019-06-04 15:01:48 +0200
commitc96c4fe49d59573e73eedf7fdd5bfa4b5dce2cc9 (patch)
treeade7b4a127aa29f2e75bbbc086126a8d062a85a3
parent54c407a74a35d4ee9ffae94cc5bc9096c9f7f54a (diff)
downloadcgit-ch/testing-version.tar.gz
tests: successfully validate rc versionsch/testing-version
For testing versions the version string differs for git tag (v2.22.0-rc3) and tarball file name (2.22.0.rc3). Let's fix validation for testing versions. Signed-off-by: Christian Hesse <mail@eworm.de>
-rwxr-xr-xtests/t0001-validate-git-versions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0001-validate-git-versions.sh b/tests/t0001-validate-git-versions.sh
index a65b35e..3200f31 100755
--- a/tests/t0001-validate-git-versions.sh
+++ b/tests/t0001-validate-git-versions.sh
@@ -33,7 +33,7 @@ test_expect_success 'test submodule version matches Makefile' '
sed -e "s/^[0-9]* \\([0-9a-f]*\\) [0-9] .*$/\\1/") &&
cd git &&
git describe --match "v[0-9]*" $sm_sha1
- ) | sed -e "s/^v//" >sm_version &&
+ ) | sed -e "s/^v//" -e "s/-/./" >sm_version &&
test_cmp sm_version makefile_version
fi
'