aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-10-07 03:26:37 +0200
committerFelix Singer <felixsinger@posteo.net>2022-10-15 14:22:48 +0000
commit955c01f5c4989ad2b0a1feec948257bf806cf1f8 (patch)
tree6c79c3d763b36750e13569978c3ee877d4392c94
parent22e9313d908ce376be6686ebeb3f77828ea70c2e (diff)
downloadflashrom-955c01f5c4989ad2b0a1feec948257bf806cf1f8.tar.gz
flashrom-955c01f5c4989ad2b0a1feec948257bf806cf1f8.tar.bz2
flashrom-955c01f5c4989ad2b0a1feec948257bf806cf1f8.zip
tests/meson.build: Turn file list into list of file objects
When a file object is created, Meson also checks if the file actually exists and an error points to the specific line of meson.build if not. If just a list of filenames is used, then the error occurs at the line where the list is used. Thus, use file objects in tests/meson.build for more useful error messages. Signed-off-by: Felix Singer <felixsinger@posteo.net> Change-Id: I0b9144a6b76c1772833817b4e6873818dcf36b05 Reviewed-on: https://review.coreboot.org/c/flashrom/+/68197 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Thomas Heijligen <src@posteo.de>
-rw-r--r--tests/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/meson.build b/tests/meson.build
index e4f7c2aa..c62cc1b3 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -11,7 +11,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-srcs = [
+srcs = files(
'io_mock.c',
'tests.c',
'libusb_wraps.c',
@@ -31,7 +31,7 @@ srcs = [
'layout.c',
'chip.c',
'chip_wp.c',
-]
+)
if not programmer.get('dummy').get('active')
srcs += programmer.get('dummy').get('srcs')