[mapserver-commits] [MapServer/MapServer] 032d9d: msautotest: fix get_gdal_version() to support GDAL...

Even Rouault noreply at github.com
Fri Aug 8 13:12:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/MapServer/MapServer
  Commit: 032d9d1ba08f0b276c718658ee21b7964118f57a
      https://github.com/MapServer/MapServer/commit/032d9d1ba08f0b276c718658ee21b7964118f57a
  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 (#7317)

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