[9.18] fix: test: Make system tests compatible with pytest 8.0.0+
Make system tests symlinks and logged test names consistent across pytest versions.
Backport of MR !9071 (merged)
Make system tests symlinks and logged test names consistent across pytest versions.
Backport of MR !9071 (merged)