Mercurial > hg > orthanc-tests
comparison Tests/Toolbox.py @ 703:8b255268d79b
support mainline-xxx versions
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 04 Oct 2024 08:50:29 +0200 |
parents | 4567c3947f8a |
children | 0322fda1834e |
comparison
equal
deleted
inserted
replaced
700:8561d9c88d1a | 703:8b255268d79b |
---|---|
342 return name | 342 return name |
343 | 343 |
344 def IsOrthancVersionAbove(orthanc, major, minor, revision): | 344 def IsOrthancVersionAbove(orthanc, major, minor, revision): |
345 v = DoGet(orthanc, '/system')['Version'] | 345 v = DoGet(orthanc, '/system')['Version'] |
346 | 346 |
347 if v == 'mainline': | 347 if v.startswith('mainline'): |
348 return True | 348 return True |
349 else: | 349 else: |
350 tmp = v.split('.') | 350 tmp = v.split('.') |
351 a = int(tmp[0]) | 351 a = int(tmp[0]) |
352 b = int(tmp[1]) | 352 b = int(tmp[1]) |