qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
9.91k stars 2.91k forks source link

Tests create directories under ~/.local/share #50587

Open strk opened 1 year ago

strk commented 1 year ago

What is the bug or the crash?

Whenever tests are run they create a directory in user dir, so that by the end of make check you are left with a lot of directories matching this pattern:

ls -dl ~/.local/share/qgis ~/.local/share/test

Steps to reproduce the issue

run any test

Versions

current master

Supported QGIS version

New profile

Additional context

No response

strk commented 1 month ago

Still a problem as of commit f64b7b67981766f6554ce0102d0cd709699c7831 (for the record)

strk commented 1 month ago

Content of each of those many directories is a profiles/default subdir - repeatedly running a test does not seem to make those directories bigger.

Example reproducer:

ctest -R test_core_qgis

I guess we want to set some environment variable to put all those profiles under a qgis-specific temporary directory ?

strk commented 1 month ago

Setting QGIS_CUSTOM_CONFIG_PATH variable allows using a custom directory for the profile. It also reduces the creation of profiles to have a single one for all tests. I guess it is worth setting this environment variable for the ctest run. Will file a PR accordingly.

strk commented 1 month ago

Problem fixed by GH-57597 - please review

strk commented 3 days ago

Re-opened by revert, will be closed again by merging GH-57934