[9.18] Use pytest runner for out-of-tree and OpenBSD system tests in CI

Backport of MR !8193 (merged)

Closes #4246 (closed)

Merge request reports