HomePhabricator

scripted-diff: Modify unit tests to use the ArgsManager in the…

Description

scripted-diff: Modify unit tests to use the ArgsManager in the BasicTestingSetup class instead of implicitly relying on gArgs

Summary:

-BEGIN VERIFY SCRIPT-
git ls-files src/test/dbwrapper_tests.cpp src/test/denialofservice_tests.cpp src/test/flatfile_tests.cpp src/test/fs_tests.cpp src/test/settings_tests.cpp src/test/util_tests.cpp | xargs sed -i 's/GetDataDir()/m_args.GetDataDirPath()/g';
arc lint
-END VERIFY SCRIPT-

This is a backport of core#21244 [6/8]
https://github.com/bitcoin/bitcoin/pull/21244/commits/83292e2a700afbf39936bd67bb89fab5398d0066

Depends on D10752

Test Plan: ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jan 3 2022, 15:52
PiRKPushed on Jan 4 2022, 14:27
Reviewer
Restricted Project
Differential Revision
D10755: scripted-diff: Modify unit tests to use the ArgsManager in the BasicTestingSetup class instead of implicitly relying on gArgs
Parents
rABCa0d297603373: BasicTestingSetup: Add ArgsManager.
Branches
Unknown
Tags
Unknown