test: make test-catalog relocatable
Fixes #10045.
(cherry picked from commit d9b6baa69968132d33e4ad8627c7fe0bd527c859)
Resolves: #1823767
patch_name: 0366-test-make-test-catalog-relocatable.patch
present_in_specfile: true
location_in_specfile: 366
squash_commits: true