[libvirt PATCH 12/13] syntax-check: Drop sc_ prefix when adding checks to meson

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All checks are added to the syntax-check suite, and this name is
displayed prominently in the output of 'meson test', so there
really is no need to include the sc_ prefix too.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 build-aux/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-aux/meson.build b/build-aux/meson.build
index 96562a4f4a..fcd231a386 100644
--- a/build-aux/meson.build
+++ b/build-aux/meson.build
@@ -47,7 +47,7 @@ configure_file(
 
 rc = run_command(
   'sed', '-n',
-  's/^\\(sc_[a-zA-Z0-9_-]*\\):.*/\\1/p',
+  's/^sc_\\([a-zA-Z0-9_-]*\\):.*/\\1/p',
   meson.current_source_dir() / 'syntax-check.mk',
   check: true,
 )
@@ -62,7 +62,7 @@ if git
     test(
       target,
       make_prog,
-      args: [ '-C', meson.current_build_dir(), target ],
+      args: [ '-C', meson.current_build_dir(), 'sc_@0@'.format(target) ],
       depends: [
         potfiles_dep,
       ],
-- 
2.35.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux