Skip to content

Commit 44b24c8

Browse files
committed
autotest: disable random order for test_gdaltindex and test_gdalgnmutils
1 parent bd460db commit 44b24c8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

autotest/utilities/test_gdaltindex.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@
3737

3838
from osgeo import gdal, ogr, osr
3939

40-
pytestmark = pytest.mark.skipif(
41-
test_cli_utilities.get_gdaltindex_path() is None, reason="gdaltindex not available"
42-
)
40+
pytestmark = [
41+
pytest.mark.skipif(
42+
test_cli_utilities.get_gdaltindex_path() is None,
43+
reason="gdaltindex not available",
44+
),
45+
pytest.mark.random_order(disabled=True),
46+
]
4347

4448

4549
@pytest.fixture()

autotest/utilities/test_gnmutils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
test_cli_utilities.get_gnmanalyse_path() is None,
4747
reason="gnmanalyse not available",
4848
),
49+
pytest.mark.random_order(disabled=True),
4950
]
5051

5152

cmake/template/pytest.ini.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env =
1919
gdal_version = @GDAL_VERSION_NO_DEV_SUFFIX@
2020

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

0 commit comments

Comments
 (0)