Let's not add the dependency unless required.
integration_tests += [
integration_test_template + {
'name' : fs.name(meson.current_source_dir()),
+ 'configuration' : integration_test_template['configuration'] + {
+ 'wants' : '@0@ tpm2.target'.format(integration_test_template['configuration']['wants']),
+ 'after' : '@0@ tpm2.target'.format(integration_test_template['configuration']['after']),
+ },
},
]
'configuration' : {
'memory-accounting' : 'no',
'command' : testdata_dir / 'units/%N.sh',
+ 'wants' : '',
+ 'after' : '',
},
'cmdline' : [],
}
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=%N
-Wants=basic.target network.target tpm2.target multi-user.target user@4711.service
-After=basic.target network.target tpm2.target user@4711.service
+Wants=basic.target network.target multi-user.target user@4711.service @wants@
+After=basic.target network.target user@4711.service @after@
Before=getty-pre.target
[Service]