We use this to ensure testing a consistent set of schemas (and it is
also faster). With linkml v1.10, it appears that local schemas are
imported relative to CWD -- but only at the first level. When a locally
imported schema imports another local schema, the imports are relative
to the location of the imported schema (behavior prior v1.10).
We mitigate this by changing CWD to the directory of the respective root
schema to equalize the conditions again.
The reason is that we are on the lookup for linkml error messages and
want to fail on those. But as soon as there is an unrelated Python
warning, the fuse for STDERR output in the makefile also trips.
The concrete case right now is a warning issued by the requests library
that it does not find a compatible chardet package.