[gdal-dev] get_cli_utility_path_internal

Andrew Bell andrew.bell.ia at gmail.com
Thu Jun 6 14:05:50 PDT 2024


The function in the subject returns a path to a utility on which to run a
test. But in the process, it tries to run the utility itself. This seems
strange. In my case, the test itself failed, but the code reported "Could
not find {file}", which is incorrect. It also causes the actual tests to
get skipped, when they should fail.

I can fix this, but I don't understand why there's an attempt to run a
utility in order to determine its path. I would think that checking that
the file exists would be sufficient (and this already occurs), but I'm not
privy to the history.

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240606/dcc77a73/attachment.htm>


More information about the gdal-dev mailing list