From: Quentin Schulz <[email protected]> test_env_initial_env_file test calls make on the build directory passed with --build-dir parameter which points at UBOOT_TRAVIS_BUILD_DIR which is populated with buildman before pytest is run. For "sandbox with clang test.py" and "sandbox64 with clang test.py" jobs, buildman uses clang-20 toolchain, but pytest isn't configured to use that as well, resulting in gcc being used with a configuration made with clang-20 toolchain.
Specify the HOSTCC and CC clang make arguments so pytest uses the proper toolchain, this will be required in a few commits when we'll upgrade to a newer version of scripts/Makefile.extrawarn which gets rid of checking whether a clang flag exists (because it's supported by the min clang version the kernel advertises as being supported) which will be an issue since GCC for sure doesn't support all clang flags. Signed-off-by: Quentin Schulz <[email protected]> --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 245e422d72f..d0ebd9f123b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -288,6 +288,7 @@ sandbox with clang test.py: - ${HOST} variables: TEST_PY_BD: "sandbox" + TEST_PY_EXTRA: "--make-args HOSTCC=clang-20 --make-args CC=clang-20" OVERRIDE: "-O clang-20" # addr2line in Ubuntu 'Noble' and later are broken. TEST_PY_TEST_SPEC: "not event_dump" @@ -313,6 +314,7 @@ sandbox64 with clang test.py: - ${HOST} variables: TEST_PY_BD: "sandbox64" + TEST_PY_EXTRA: "--make-args HOSTCC=clang-20 --make-args CC=clang-20" OVERRIDE: "-O clang-20" <<: *buildman_and_testpy_dfn -- 2.54.0

