[mapserver-commits] [MapServer/MapServer] 9cd969: msautotest: fix get_gdal_version() to support GDAL...
github-actions[bot]
noreply at github.com
Sat Aug 9 03:35:16 PDT 2025
Branch: refs/heads/branch-8-4
Home: https://github.com/MapServer/MapServer
Commit: 9cd969e7bb59b8ddd8c967c0c926e666bdd16cdd
https://github.com/MapServer/MapServer/commit/9cd969e7bb59b8ddd8c967c0c926e666bdd16cdd
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date: 2025-08-09 (Sat, 09 Aug 2025)
Changed paths:
M msautotest/pymod/mstestlib.py
Log Message:
-----------
msautotest: fix get_gdal_version() to support GDAL version nickname (#7319)
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"'
```
Co-authored-by: Even Rouault <even.rouault at spatialys.com>
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