Page MenuHomePhabricator

scripted-diff: Change ArgsManager.GetDataDirPath() to `ArgsManager.GetDataDirBase()` in tests
ClosedPublic

Authored by PiRK on Sep 12 2022, 09:00.

Details

Summary
-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.

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable