HomePhabricator

scripted-diff: Change ArgsManager.GetDataDirPath() to `ArgsManager.

Description

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

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11954

Details

Provenance
PiRKAuthored on Sep 12 2022, 08:28
PiRKPushed on Sep 12 2022, 15:17
Reviewer
Restricted Project
Differential Revision
D11954: scripted-diff: Change ArgsManager.GetDataDirPath() to `ArgsManager.GetDataDirBase()` in tests
Parents
rABCbb16bfa11be2: Add `ArgsManager.GetDataDirBase()` and `ArgsManager.GetDataDirNet()` as an…
Branches
Unknown
Tags
Unknown