Skip to content

Commit

Permalink
autotest: disable random order for test_gdaltindex and test_gdalgnmutils
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Jul 13, 2023
1 parent bd460db commit 44b24c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions autotest/utilities/test_gdaltindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@

from osgeo import gdal, ogr, osr

pytestmark = pytest.mark.skipif(
test_cli_utilities.get_gdaltindex_path() is None, reason="gdaltindex not available"
)
pytestmark = [
pytest.mark.skipif(
test_cli_utilities.get_gdaltindex_path() is None,
reason="gdaltindex not available",
),
pytest.mark.random_order(disabled=True),
]


@pytest.fixture()
Expand Down
1 change: 1 addition & 0 deletions autotest/utilities/test_gnmutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
test_cli_utilities.get_gnmanalyse_path() is None,
reason="gnmanalyse not available",
),
pytest.mark.random_order(disabled=True),
]


Expand Down
1 change: 1 addition & 0 deletions cmake/template/pytest.ini.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env =
gdal_version = @GDAL_VERSION_NO_DEV_SUFFIX@

markers =
random_order: Indicates whether tests can be run non-sequentially
require_curl: Skip test(s) if curl support is absent
require_creation_option: Skip test(s) if required creation option is not available
require_driver: Skip test(s) if driver isn't present
Expand Down

0 comments on commit 44b24c8

Please sign in to comment.