summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-04-07 19:01:26 +0200
committerBenoit Foucher <benoit@zeroc.com>2016-04-07 19:01:26 +0200
commit86cebe154899d8a2c2039707a7f1b436590a16ef (patch)
treeb5e1bbe148fd5af3db7a00de5fb5da3d5ac86ed8 /scripts/TestUtil.py
parentC++11 build fix for LoggerI updates (diff)
downloadice-86cebe154899d8a2c2039707a7f1b436590a16ef.tar.bz2
ice-86cebe154899d8a2c2039707a7f1b436590a16ef.tar.xz
ice-86cebe154899d8a2c2039707a7f1b436590a16ef.zip
Fixes to support new versionning scheme for alpha/beta releases
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index d892088db82..f6048a5173a 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -211,13 +211,12 @@ def getIceSoVersion():
majorVersion = int(intVersion / 10000)
minorVersion = int(intVersion / 100) - 100 * majorVersion
patchVersion = intVersion % 100
- if patchVersion > 50:
- if patchVersion >= 52:
- return '%db%d' % (majorVersion * 10 + minorVersion, patchVersion - 50)
- else:
- return '%db' % (majorVersion * 10 + minorVersion)
- else:
+ if patchVersion <= 50:
return '%d' % (majorVersion * 10 + minorVersion)
+ elif patchVersion <= 70:
+ return '%da%d' % (majorVersion * 10 + minorVersion, patchVersion - 51)
+ else:
+ return '%db%d' % (majorVersion * 10 + minorVersion, patchVersion - 71)
def getJdkVersion():
process = subprocess.Popen("java -version", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
@@ -382,7 +381,7 @@ try:
config = open(os.path.join(toplevel, "config", "Make.common.rules.mak"), "r")
else:
config = open(os.path.join(toplevel, "config", "Make.common.rules"), "r")
- iceVersion = re.search("VERSION[\t\s]*= ([0-9]+\.[0-9]+(\.[0-9]+|b[0-9]*))", config.read()).group(1)
+ iceVersion = re.search("VERSION[\t\s]*= ([0-9]+\.[0-9]+(\.[0-9]+|[ab][0-9]*))", config.read()).group(1)
config.close()
except:
print("error: couldn't figure Ice version")