HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jul 17 2023, 09:35
PiRKPushed on Jul 17 2023, 14:38
Reviewer
Restricted Project
Differential Revision
D14274: [electrum] make the functional tests current-working-directory agnostic
Parents
rABC041269e6f4d1: [electrum] always test the latest Bitcoin ABC and fulcrum in functional tests
Branches
Unknown
Tags
Unknown