From 67739858a1a1d787529e39a090429dee4acfca3d Mon Sep 17 00:00:00 2001 From: sethg Date: Wed, 10 Jul 2024 17:45:16 +0200 Subject: [PATCH] Set GDAL_DRIVER_PATH so the GIF driver is found and re-enable tests --- appveyor.yml | 4 +++- msautotest/mspython/test_rq.py | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ce8a0de890..01ba55fd9d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -85,7 +85,9 @@ build_script: - cd %BUILD_FOLDER%/build # set the MapScript custom environment variable for python 3.8+ - set MAPSERVER_DLL_PATH=%BUILD_FOLDER%/build/Release;%SDK_BIN% - - set PROJ_LIB=%SDK_BIN%/proj9/SHARE + - set PROJ_DATA=%SDK_BIN%/proj9/SHARE + # ensure the GIF driver is available for tests + - set GDAL_DRIVER_PATH=%SDK_BIN%/gdal/plugins # check the mapserver exe can run - mapserv -v - cmake --build . --target pythonmapscript-wheel --config Release diff --git a/msautotest/mspython/test_rq.py b/msautotest/mspython/test_rq.py index a85e279db3..1bd6f81b98 100755 --- a/msautotest/mspython/test_rq.py +++ b/msautotest/mspython/test_rq.py @@ -397,10 +397,10 @@ def test_rq_9(): # Open a classified map and post a point query. -@pytest.mark.xfail( - "APPVEYOR" in os.environ, reason="fail for unknown reason on AppVeyor builds" -) def test_rq_10(): + """ + This test requires the GIF driver to be available in GDAL, by setting GDAL_DRIVER_PATH + """ map = mapscript.mapObj(get_relpath_to_this("../gdal/classtest1.map")) layer = map.getLayer(0) @@ -455,10 +455,10 @@ def test_rq_10(): # Issue another point query, on colored text. -@pytest.mark.xfail( - "APPVEYOR" in os.environ, reason="fail for unknown reason on AppVeyor builds" -) def test_rqtest_12(): + """ + This test requires the GIF driver to be available in GDAL, by setting GDAL_DRIVER_PATH + """ map = mapscript.mapObj(get_relpath_to_this("../gdal/classtest1.map")) layer = map.getLayer(0)