Skip to content

Fix fetch translation tests in gitlab forks

As you can see in many merge requests created from GitLab forks tests are failing like this:

3/95 Test  #3: KDEFetchTranslations .........................................................***Failed    0.23 sec
Internal cmake changing into directory: /builds/thomasweissschuh/extra-cmake-modules/_build/tests/KDEFetchTranslations
Error: cmake execution failed
The C compiler identification is Clang 17.0.6
The CXX compiler identification is Clang 17.0.6
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: /usr/bin/cc - skipped
Detecting C compile features
Detecting C compile features - done
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: /usr/bin/c++ - skipped
Detecting CXX compile features
Detecting CXX compile features - done
module: KDEInstallDirs
Installing in . Run /builds/thomasweissschuh/extra-cmake-modules/_build/tests/KDEFetchTranslations/prefix.sh to set the environment for extra-cmake-modules.
module: KDECMakeSettings
fatal: HEAD does not point to a branch
module: ECMMarkNonGuiExecutable
fatal: HEAD does not point to a branch
CMake Error at CMakeLists.txt:22 (message):
  Wrong repository name: thomasweissschuh/extra-cmake-modules, should be
  'frameworks/extra-cmake-modules'
Configuring incomplete, errors occurred!

With this MR the check is changed from a comparison against frameworks/extra-cmake-modules to a regex match check against */extra-cmake-modules. This MR is created from a fork, so if the pipeline succeeds this proofs the patch works.

Merge request reports