meson: exclude .gitattributes when using install_subdir
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 9 Dec 2021 22:16:19 +0000 (22:16 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Dec 2021 06:30:58 +0000 (07:30 +0100)
It picks the whole content of the directory by default, but we don't
want to install .gitattributes files. Add it to all invocations, not
just the ones on subdirs with .gitattributes, so that we don't regress
in the future.

Fixes #21715

test/meson.build

index 1d63c0c038848de4d58b6feb60c06adf8590434e..fad40b8946494b1f5f70680685966e303bd80b3f 100644 (file)
@@ -4,36 +4,52 @@ if install_tests
         testdata_dir = testsdir + '/testdata/'
 
         install_subdir('journal-data',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('test-execute',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('test-path',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('test-path-util',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('test-umount',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('test-network-generator-conversion',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-04.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-06.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-10.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-11.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-16.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-28.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-30.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-52.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
         install_subdir('testsuite-63.units',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
 
         install_data(kbd_model_map,
@@ -53,6 +69,7 @@ if install_tests
 
         if conf.get('ENABLE_RESOLVE') == 1
                 install_subdir('test-resolve',
+                               exclude_files : '.gitattributes',
                                install_dir : testdata_dir)
         endif
 
@@ -75,6 +92,7 @@ if install_tests and conf.get('ENABLE_SYSUSERS') == 1
         install_data(test_sysusers_sh,
                      install_dir : testsdir)
         install_subdir('test-sysusers',
+                       exclude_files : '.gitattributes',
                        install_dir : testdata_dir)
 endif