HomePhabricator

test: add a --repeat argument to test_runner.py

Description

test: add a --repeat argument to test_runner.py

Summary: This allows repeating the test suite or invidual tests a specified number of time, with the benefit of parallelism.

Test Plan:
ninja check-functional

$ test/functional/test_runner.py --repeat 50 p2p_leak rpc_dumpt*
...
p2p_leak.py         | ✓ Passed  | 6 s
p2p_leak.py         | ✓ Passed  | 6 s
p2p_leak.py         | ✓ Passed  | 6 s
p2p_leak.py         | ✓ Passed  | 6 s
...
rpc_dumptxoutset.py | ✓ Passed  | 0 s
rpc_dumptxoutset.py | ✓ Passed  | 1 s
rpc_dumptxoutset.py | ✓ Passed  | 1 s
rpc_dumptxoutset.py | ✓ Passed  | 1 s

ALL                 | ✓ Passed  | 333 s (accumulated)
Runtime: 18 s

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Tue, May 6, 10:48
PiRKPushed on Tue, May 6, 14:58
Reviewer
Restricted Project
Differential Revision
D18054: test: add a --repeat argument to test_runner.py
Parents
rABCc362a890c708: [electrum] wrap the error message when exchange rate API fails
Branches
Unknown
Tags
Unknown