````
-BEGIN VERIFY SCRIPT-
git ls-files src/test/*_tests.cpp src/test/util/setup_common.cpp | xargs sed -i 's/.GetDataDirPath()/.GetDataDirBase()/g';
-END VERIFY SCRIPT-
```
This is a backport of core#21850 [3/6]
https://github.com/bitcoin/bitcoin/pull/21850/commits/4d8189f62076d47be182e709857774bc3921b334
Depends on D11953
Note: this obviously changes the directory where the dabase is written, it would have made more sense to use `GetDataDirNet`. But the test does not seem to care where the database is stored precisely.