mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
Fix version tests for release candidates
This commit is contained in:
parent
d346179137
commit
657b8bc123
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
cmake_minimum_required(VERSION 3.18)
|
||||
|
||||
set (VERSION 2.1.0rc1)
|
||||
set (VERSION 2.1.0)
|
||||
project(mosquitto
|
||||
VERSION ${VERSION}
|
||||
DESCRIPTION "Eclipse Mosquitto"
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ try:
|
|||
if response.status != 200:
|
||||
raise ValueError(f"Error: /api/v1/version {response.status}")
|
||||
payload = response.read().decode('utf-8')
|
||||
if not re.match(r'^\d+\.\d+\.\d+$', payload):
|
||||
if not re.match(r'^\d+\.\d+\.\d+.*$', payload):
|
||||
raise ValueError(f"Error: /api/v1/version\n{payload}")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ try:
|
|||
if response.status != 200:
|
||||
raise ValueError(f"Error: /api/v1/version {response.status}")
|
||||
payload = response.read().decode('utf-8')
|
||||
if not re.match(r'^\d+\.\d+\.\d+$', payload):
|
||||
if not re.match(r'^\d+\.\d+\.\d+.*$', payload):
|
||||
raise ValueError(f"Error: /api/v1/version\n{payload}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue