Test: Make version test compatible with non-beta releases

This commit is contained in:
Wilhelm Schuermann 2015-10-22 13:43:40 +02:00
parent dc7ea3ae8b
commit 2a2627e8a9

View file

@ -59,7 +59,7 @@ class TestVersion(TestCase):
def slurp(self, file="../CMakeLists.txt"): def slurp(self, file="../CMakeLists.txt"):
number = "\.".join(["[0-9]+"] * 3) 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: with open(file) as fh:
for line in fh: for line in fh:
if "PROJECT_VERSION" in line: if "PROJECT_VERSION" in line: