Page MenuHomePhabricator

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

Authored by PiRK on Jan 3 2022, 16:30.

Details

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

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Jan 3 2022, 16:30
This revision is now accepted and ready to land.Jan 3 2022, 20:49
PiRK edited the summary of this revision. (Show Details)

rebase and update parent revision