[mapserver-commits] [MapServer/MapServer] 02bd52: msautotest: fix get_gdal_version() to support GDAL...
Even Rouault
noreply at github.com
Fri Aug 8 13:13:08 PDT 2025
Branch: refs/heads/backport-7317-to-branch-8-4
Home: https://github.com/MapServer/MapServer
Commit: 02bd52d4791e7c0102e4aa1ca8cc7aaa8eb61695
https://github.com/MapServer/MapServer/commit/02bd52d4791e7c0102e4aa1ca8cc7aaa8eb61695
Author: Even Rouault <even.rouault at spatialys.com>
Date: 2025-08-08 (Fri, 08 Aug 2025)
Changed paths:
M msautotest/pymod/mstestlib.py
Log Message:
-----------
msautotest: fix get_gdal_version() to support GDAL version nickname
Fixes
```
Cannot validate XML because SCHEMAS_OPENGIS_NET not found. Run "python ../pymod/xmlvalidate.py -download_ogc_schemas" from msautotest/wxs
Traceback (most recent call last):
File "/home/runner/work/mapserver/mapserver/msautotest/wxs/./run_test.py", line 43, in <module>
mstestlib.get_pytests(os.path.dirname(os.path.abspath(__file__))),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/mapserver/mapserver/msautotest/wxs/../pymod/mstestlib.py", line 536, in get_pytests
if not has_requires(version_info, gdal_version, requires_list):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/mapserver/mapserver/msautotest/wxs/../pymod/mstestlib.py", line 111, in has_requires
if compare_version(gdal_version, item[len("GDAL>=") :]) < 0:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/mapserver/mapserver/msautotest/wxs/../pymod/mstestlib.py", line 84, in compare_version
a_x, a_y, a_z = int(a[0]), int(a[1]), int(a[2])
^^^^^^^^^
ValueError: invalid literal for int() with base 10: '3 "Eganville"'
```
To unsubscribe from these emails, change your notification settings at https://github.com/MapServer/MapServer/settings/notifications
More information about the MapServer-commits
mailing list