add TEST_DIR env to pass to setup.sh to gain access to the test directory with the python environment

This commit is contained in:
daywalker90
2024-02-09 12:24:30 +01:00
committed by mergify[bot]
parent 23268522cd
commit cb3145da29

View File

@@ -200,7 +200,7 @@ def prepare_generic(p: Plugin, directory: Path):
if p.details['setup'].exists():
print(f"Running setup script from {p.details['setup']}")
subprocess.check_call(
['bash', p.details['setup']],
['bash', p.details['setup'], f'TEST_DIR={directory}'],
stderr=subprocess.STDOUT,
)
install_pyln_testing(pip_path)