Fix a broken auth token test and support conditional tests for "versioned" releases. (#1195)

This commit is contained in:
Jim authored and GitHub committed 2021-05-04 10:25:11 -04:00
1 parent f493fd3252
commit c7bac26e1a
4 files changed
+16 -2

No files matched your search

+4 -1
View File
@@ -3,6 +3,9 @@ function version() {
}
function version_is_valid() {
if [ "$IS_VERSION" = "" ]; then
skip "not a version build"
fi
ver=$($(strip version) | jq -c '.version' | cut -d 'v' -f2)
if [ "$ver" == "null" ]; then
return 1
@@ -12,7 +15,7 @@ function version_is_valid() {
function revision_is_valid() {
len=$($(strip version) | jq -c '.revision' | cut -d '+' -f1 | wc -m)
if [ "$len" -eq 42 ]; then
if [ "$len" -eq 43 ]; then
return 0
fi
return 1