From ebaf95300d2225695090796038d7912afd80549b Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Thu, 6 May 2021 14:46:57 -0400 Subject: [PATCH] Add additional regexp for dbs2go version tag matching (vXX.YY.ZZ) --- Client/tests/dbsclient_t/unittests/DBSClientReader_t.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/tests/dbsclient_t/unittests/DBSClientReader_t.py b/Client/tests/dbsclient_t/unittests/DBSClientReader_t.py index d93d2bb1..cb9eceef 100644 --- a/Client/tests/dbsclient_t/unittests/DBSClientReader_t.py +++ b/Client/tests/dbsclient_t/unittests/DBSClientReader_t.py @@ -1477,7 +1477,7 @@ def test106(self): def test107(self): """test107: unittestDBSClientReader_t.serverinfo: get server info""" - reg_ex = r'^(3+\.[0-9]+\.[0-9]+[\.\-a-z0-9]*$)' + reg_ex = r'^(3+\.[0-9]+\.[0-9]+[\.\-a-z0-9]*$)|^v[0-9][0-9].[0-9][0-9].[0-9][0-9]' version = self.api.serverinfo() self.assertTrue('dbs_version' in version) self.assertFalse(re.compile(reg_ex).match(version['dbs_version']) is None)