]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: fix coccinelle test names 41506/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Sat, 4 Apr 2026 20:10:27 +0000 (22:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Sat, 4 Apr 2026 20:10:27 +0000 (22:10 +0200)
fs.name() returns empty if the string ends with "/".

meson.build

index 5db299a2a7476d535e1ecba26e755745c1bba1e9..659aecd4218773f49a4077864baac62b73620975 100644 (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'],