Hi,

I have in a single test python file with 3 tests inside: 
gdal/autotest/ogr/ogr_miramon_vector.py at master * AbelPau/gdal 
(github.com)<https://github.com/AbelPau/gdal/blob/master/autotest/ogr/ogr_miramon_vector.py#L134>
In some actions the first and second are Ok but the third is not. Example of 
failure:
Some improvements for empty layers * AbelPau/gdal@90a289c 
(github.com)<https://github.com/AbelPau/gdal/actions/runs/8251854865/job/22569933640#step:12:4863>

Here you have the log (return _gdal.OpenEx(*args, **kwargs)
4912<https://github.com/AbelPau/gdal/actions/runs/8251854865/job/22569933640#step:12:4913>23:
 E RuntimeError: Cannot open file %s.) <--- This happen in the driver when open 
fails.

The first two are OK:
gdal/autotest/ogr/ogr_miramon_vector.py at master * AbelPau/gdal 
(github.com)<https://github.com/AbelPau/gdal/blob/master/autotest/ogr/ogr_miramon_vector.py#L48>
gdal/autotest/ogr/ogr_miramon_vector.py at master * AbelPau/gdal 
(github.com)<https://github.com/AbelPau/gdal/blob/master/autotest/ogr/ogr_miramon_vector.py#L99>

But this is not OK:
gdal/autotest/ogr/ogr_miramon_vector.py at master * AbelPau/gdal 
(github.com)<https://github.com/AbelPau/gdal/blob/master/autotest/ogr/ogr_miramon_vector.py#L134>

And the file are all on the correct place (I am sure about that):
For the second one, for example:
gdal/autotest/ogr/data/miramon/Arcs/SimpleArcs at master * AbelPau/gdal 
(github.com)<https://github.com/AbelPau/gdal/tree/master/autotest/ogr/data/miramon/Arcs/SimpleArcs>

And for the third one:
gdal/autotest/ogr/data/miramon/Polygons/SimplePolygons at master * AbelPau/gdal 
(github.com)<https://github.com/AbelPau/gdal/tree/master/autotest/ogr/data/miramon/Polygons/SimplePolygons>

On local tests are perfectly OK (see below). So, after some days of trying to 
figure out WHY and what is de difference between 2 and 3th test I have to ask 
you because it must be obvious but not to me.

Any idea? Some permissions stuff?? THANKS!


root@f5b8c1fb00ae:/gdal/build/autotest# python3 -m pytest -vv -p no:sugar 
--color=no ogr/ogr_miramon_vector.py
================================================= test session starts 
==================================================
platform linux -- Python 3.10.12, pytest-8.1.1, pluggy-1.4.0 -- /usr/bin/python3
cachedir: .pytest_cache
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False 
min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 
warmup=False warmup_iterations=100000)
GDAL Build Info:
  PAM_ENABLED: YES
  OGR_ENABLED: YES
  CURL_ENABLED: YES
  CURL_VERSION: 7.81.0
  GEOS_ENABLED: YES
  GEOS_VERSION: 3.10.2-CAPI-1.16.0
  PROJ_BUILD_VERSION: 8.2.1
  PROJ_RUNTIME_VERSION: 8.2.1
  COMPILER: GCC 11.4.0
GDAL_DOWNLOAD_TEST_DATA: undefined (tests relying on downloaded data may be 
skipped)
GDAL_RUN_SLOW_TESTS: undefined (tests marked as "slow" will be skipped)
rootdir: /gdal/build/autotest
configfile: pytest.ini
plugins: env-1.1.3, benchmark-4.0.0
collected 3 items

ogr/ogr_miramon_vector.py::test_ogr_miramon_simple_point PASSED                 
                                 [ 33%]
ogr/ogr_miramon_vector.py::test_ogr_miramon_simple_arc PASSED                   
                                 [ 66%]
ogr/ogr_miramon_vector.py::test_ogr_miramon_simple_polygon PASSED               
                                 [100%]

================================================== 3 passed in 0.11s 
===================================================

Abel Pau Garcia
GIS developer
[https://www.creaf.cat/sites/default/files/creaf-signature.png]
a....@creaf.uab.cat<mailto:a....@creaf.uab.cat>
Let's chat on 
Teams!<https://teams.microsoft.com/l/chat/0/0?users=a....@creaf.uab.cat>
Tel. +34 934814277
[https://www.creaf.cat/sites/default/files/so-en-signature.png]
[https://www.creaf.cat/sites/default/files/twitter-icon-signature.png]<https://twitter.com/CREAF_ecologia>[https://www.creaf.cat/sites/default/files/linkedin-icon-signature.png]<https://www.linkedin.com/company/1363052?trk=tyah&trkInfo=clickedVertical:company,clickedEntityId:1363052,idx:2-1-2,tarId:1465807877789,tas:creaf>[https://www.creaf.cat/sites/default/files/youtube-icon-signature.png]<https://www.youtube.com/c/creafecologia>[https://www.creaf.cat/sites/default/files/instagram-icon-signature.png]<https://www.instagram.com/CREAF_ecologia/>
www.creaf.cat<http://www.creaf.cat> | http://blog.creaf.cat
[https://www.creaf.cat/sites/default/files/uab_logo_signatura.png]
CREAF. Campus UAB. Edifici C. 08193 Bellaterra (Barcelona)

Before printing this electronic message, think about the environment.



_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to