pytest-dev / pytest-testinfra

Testinfra test your infrastructures
https://testinfra.readthedocs.io
Apache License 2.0
2.37k stars 355 forks source link

Improve system detection for openSUSE style distributions #723

Closed dirkmueller closed 1 year ago

dirkmueller commented 1 year ago

openSUSE distributions can have rpm, dnf and dpkg installed at the same time, but the system is always maintained via rpm. so explicitly detect it as such. Also don't trust lsb-release too much, /etc/os-release is the preferred method so pick that one first.

philpep commented 1 year ago

Merged, thanks!