Skip to content

Commit 2ad5601

Browse files
committed
Remove unused src_dir param from run_tests
1 parent 3ee1521 commit 2ad5601

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/functional/test_runner.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ def main():
560560

561561
run_tests(
562562
test_list=test_list,
563-
src_dir=config["environment"]["SRCDIR"],
564563
build_dir=config["environment"]["BUILDDIR"],
565564
tmpdir=tmpdir,
566565
jobs=args.jobs,
@@ -572,7 +571,7 @@ def main():
572571
results_filepath=results_filepath,
573572
)
574573

575-
def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=False, args=None, combined_logs_len=0, failfast=False, use_term_control, results_filepath=None):
574+
def run_tests(*, test_list, build_dir, tmpdir, jobs=1, enable_coverage=False, args=None, combined_logs_len=0, failfast=False, use_term_control, results_filepath=None):
576575
args = args or []
577576

578577
# Warn if bitcoind is already running
@@ -595,7 +594,7 @@ def run_tests(*, test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=
595594
print(f"{BOLD[1]}WARNING!{BOLD[0]} There may be insufficient free space in {tmpdir} to run the Bitcoin functional test suite. "
596595
f"Running the test suite with fewer than {min_space // (1024 * 1024)} MB of free space might cause tests to fail.")
597596

598-
tests_dir = build_dir + '/test/functional/'
597+
tests_dir = f"{build_dir}/test/functional/"
599598
# This allows `test_runner.py` to work from an out-of-source build directory using a symlink,
600599
# a hard link or a copy on any platform. See https://github.com/bitcoin/bitcoin/pull/27561.
601600
sys.path.append(tests_dir)

0 commit comments

Comments
 (0)