gdal: use pytest-benchmark to disable benchmarks

This is a the reliable way to make sure we don't run any benchmarks,
since apparently disabling the benchmark directory has become
insufficient.
This commit is contained in:
Martin Weinelt 2024-03-14 12:49:01 +01:00
parent 56d8697a63
commit f13af94a1f
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -234,18 +234,19 @@ stdenv.mkDerivation (finalAttrs: {
'';
nativeInstallCheckInputs = with python3.pkgs; [
pytestCheckHook
pytest-benchmark
pytest-env
filelock
lxml
];
pytestFlagsArray = [
"--benchmark-disable"
];
disabledTestPaths = [
# tests that attempt to make network requests
"gcore/vsis3.py"
"gdrivers/gdalhttp.py"
"gdrivers/wms.py"
# disable benchmarks
"benchmark/*"
];
disabledTests = [
# tests that attempt to make network requests