gitlab-ci: Rename CI config variable to avoid conflict with CMAKE_BUILD_TYPE
Since !6291 (merged), the CMAKE_BUILD_TYPE
environment variable is interpreted by CMake, and can affect the test suite. Rename our CI config variable to avoid conflict.
Also fix newline matching in several RunCMake.* cases. The RunCMake infrastructure's *-stdout.txt
expected output files interpret \n
as a \
and n
rather than a newline. Use a literal newline instead. Otherwise the cases that were trying to match any configuration name via [^\n]*
would fail on RelWithDebInfo
because it contains the letter n
. This was caught due to a conflicting CMAKE_BUILD_TYPE
environment variable set to RelWithDebInfo
.
Backport: release