tests: Don't depend on git to get testdata path
On debian package build time, tests are run outside a git checkout so git cannot be used to determine the path of the testdata directory
How to register an account on GitLab. To prevent spam, new accounts are locked until approved by an admin or the approver bot. You can also file an unlock request to expedite access.
Support: mw:GitLab, how to host a project on GitLab, #wikimedia-gitlab on libera.chat, #GitLab on Phabricator.
On debian package build time, tests are run outside a git checkout so git cannot be used to determine the path of the testdata directory