mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
meson: Use echo to list files
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).
This commit is contained in:
parent
68a06b3cdf
commit
3a469802f4
@ -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 = []
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user