mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 21:52:53 +02:00
test: get_previous_releases.py use PREVIOUS_RELEASES_DIR
`test_framework.py` already uses `PREVIOUS_RELEASES_DIR` to set a default directory to find previous releases, so should `get_previous_releases.py` when fetching them. This is more convenient for local development when using multiple worktrees where having `$PREVIOUS_RELEASES_DIR` set is useful. Also allows some CI code to get deleted.
This commit is contained in:
3
.github/ci-windows-cross.py
vendored
3
.github/ci-windows-cross.py
vendored
@@ -99,12 +99,9 @@ def prepare_tests():
|
||||
content = "\n".join(lines) + "\n"
|
||||
config_path.write_text(content)
|
||||
print(content)
|
||||
previous_releases_dir = Path(os.environ["PREVIOUS_RELEASES_DIR"])
|
||||
cmd_download_prev_rel = [
|
||||
sys.executable,
|
||||
str(workspace / "test" / "get_previous_releases.py"),
|
||||
"--target-dir",
|
||||
str(previous_releases_dir),
|
||||
]
|
||||
run(cmd_download_prev_rel)
|
||||
run([sys.executable, "-m", "pip", "install", "pyzmq"])
|
||||
|
||||
Reference in New Issue
Block a user