meson: fix coccinelle test names

fs.name() returns empty if the string ends with "/".
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-04-04 22:10:27 +02:00
parent 865f16d7a0
commit 58b0dac9f8
+1 -1
View File
@@ -2998,7 +2998,7 @@ if spatch.found()
foreach dir : coccinelle_src_dirs
if dir not in coccinelle_exclude
test(
'coccinelle-@0@'.format(fs.name(dir)),
'coccinelle-@0@'.format(fs.name(dir.strip('/'))),
check_coccinelle_sh,
args : [meson.project_source_root() / dir,
meson.project_source_root() / 'coccinelle'],