lightning
lightning copied to clipboard
pytest: Add `system-postgres` DB provider and allow pyln-testing to run on older CLN versions too
This tackles two problems:
- By using a system-wide installed
postgreswe can cut down on the overhead of spinning the DB up and down for the tests. More importantly this allows us to run the tests asroot, since we no longer run intopostgrescomplaining about not wanting to run asroot. This is for example the case if we run in CI or in docker, where the files are often owned byroot, and having to switch to another user can result in permission issues. - The recent v23.11 release of
pyln-testingbroke backwards compatibility with prior CLN versions because it just bluntly assumes--developeris a valid CLI option. It was introduced in v23.11 and therefore causes all prior versions to justabort().
Fixed a minor issue when parsing non-release version.