Page MenuHomePhabricator

[electrum] make the functional tests current-working-directory agnostic
ClosedPublic

Authored by PiRK on Jul 17 2023, 09:44.

Details

Summary

Previously the functional test could only be run from the electrum root directory. This is a bit inconvenient if we want to run them e.g. from the ${PROJECT_ROOT}/build directory.

Also use os.path.join everywhere instead of concatening strings with unix-style path separators.

Test Plan

from the monorepo root:

pytest electrum/electrumabc/tests/regtest
cd electrum
pytest electrumabc/tests/regtest
cd ../build
pytest ../electrum/electrumabc/tests/regtest

Diff Detail

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