Test: Make version test compatible with non-beta releases
This commit is contained in:
@@ -59,7 +59,7 @@ class TestVersion(TestCase):
|
||||
|
||||
def slurp(self, file="../CMakeLists.txt"):
|
||||
number = "\.".join(["[0-9]+"] * 3)
|
||||
ver = re.compile("^set \(PROJECT_VERSION \"({0}.+)\"\)$".format(number))
|
||||
ver = re.compile("^set \(PROJECT_VERSION \"({0}[^\"]*)\"\)$".format(number))
|
||||
with open(file) as fh:
|
||||
for line in fh:
|
||||
if "PROJECT_VERSION" in line:
|
||||
|
||||
Reference in New Issue
Block a user