]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Use echo to list files 22088/head
authorJan Janssen <medhefgo@web.de>
Tue, 11 Jan 2022 10:27:27 +0000 (11:27 +0100)
committerJan Janssen <medhefgo@web.de>
Tue, 11 Jan 2022 13:56:33 +0000 (14:56 +0100)
No need to invoke ls when we are just interested in file names.
Also, the cd to source root makes the output identical to
"git ls-files" (relative instead of absolute paths).

test/fuzz/meson.build
test/meson.build

index e8e17446e05fd3db5990a1f4bce66ce1bbe30dc4..c0720b14ea1564493fd05cb6f226c2535a8a8f59 100644 (file)
@@ -22,7 +22,7 @@ if git.found() and fs.exists(project_source_root / '.git')
                           'ls-files', ':/test/fuzz/*/*',
                           check: true)
 else
-        out = run_command(sh, '-c', 'ls @0@/test/fuzz/*/*'.format(project_source_root), check: true)
+        out = run_command(sh, '-c', 'cd "@0@"; echo test/fuzz/*/*'.format(project_source_root), check: true)
 endif
 
 fuzz_regression_tests = []
index 46eab4c1e14f9c2b2e0e96a8ec15a27f73931176..6f6bba699466e5fb1201392ae36e0c067b4c1a4f 100644 (file)
@@ -174,7 +174,7 @@ if want_tests != 'false' and dmi_arches.contains(host_machine.cpu_family())
                         check: true)
         else
                 out = run_command(
-                        sh, '-c', 'ls @0@/test/dmidecode-dumps/*.bin'.format(project_source_root),
+                        sh, '-c', 'cd "@0@"; echo test/dmidecode-dumps/*.bin'.format(project_source_root),
                         check: true)
         endif