scripts: pylib: twister: Pass testsuite name to cmake

Add a CMake argument with the current testsuite name.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-09-06 12:19:14 +02:00 committed by Carles Cufí
commit d2bae91803
2 changed files with 4 additions and 2 deletions

View file

@ -343,6 +343,7 @@ class CMake:
cmake_args = [
f'-B{self.build_dir}',
f'-DTC_RUNID={self.instance.run_id}',
f'-DTC_NAME={self.instance.testsuite.name}',
f'-D{warning_command}={warnings_as_errors}',
f'-DEXTRA_GEN_DEFINES_ARGS={gen_defines_args}',
f'-G{self.env.generator}'