From fbaa99cb08d1b4d6f832bfa711879ea2bb3a0b35 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 13 Nov 2024 12:27:18 +0100 Subject: [PATCH] test_gdal_edit.py / test_gdal_proximity.py: skip on sanitize CI --- autotest/pyscripts/test_gdal_edit.py | 7 +++++++ autotest/pyscripts/test_gdal_proximity.py | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/autotest/pyscripts/test_gdal_edit.py b/autotest/pyscripts/test_gdal_edit.py index a9f4875bf6da..8f5adbda27a7 100755 --- a/autotest/pyscripts/test_gdal_edit.py +++ b/autotest/pyscripts/test_gdal_edit.py @@ -17,6 +17,7 @@ import shutil import sys +import gdaltest import pytest import test_py_scripts @@ -46,6 +47,9 @@ def script_path(): def test_gdal_edit_help(script_path): + if gdaltest.is_travis_branch("sanitize"): + pytest.skip("fails on sanitize for unknown reason") + assert "ERROR" not in test_py_scripts.run_py_script( script_path, "gdal_edit", "--help" ) @@ -57,6 +61,9 @@ def test_gdal_edit_help(script_path): def test_gdal_edit_version(script_path): + if gdaltest.is_travis_branch("sanitize"): + pytest.skip("fails on sanitize for unknown reason") + assert "ERROR" not in test_py_scripts.run_py_script( script_path, "gdal_edit", "--version" ) diff --git a/autotest/pyscripts/test_gdal_proximity.py b/autotest/pyscripts/test_gdal_proximity.py index 96a927e2665b..a09ce5a4e461 100755 --- a/autotest/pyscripts/test_gdal_proximity.py +++ b/autotest/pyscripts/test_gdal_proximity.py @@ -13,6 +13,7 @@ # SPDX-License-Identifier: MIT ############################################################################### +import gdaltest import pytest import test_py_scripts @@ -35,6 +36,9 @@ def script_path(): def test_gdal_proximity_help(script_path): + if gdaltest.is_travis_branch("sanitize"): + pytest.skip("fails on sanitize for unknown reason") + assert "ERROR" not in test_py_scripts.run_py_script( script_path, "gdal_proximity", "--help" ) @@ -46,6 +50,9 @@ def test_gdal_proximity_help(script_path): def test_gdal_proximity_version(script_path): + if gdaltest.is_travis_branch("sanitize"): + pytest.skip("fails on sanitize for unknown reason") + assert "ERROR" not in test_py_scripts.run_py_script( script_path, "gdal_proximity", "--version" )