The test triggers many uevents, and running both system and user service
managers make the test slow.
unit = configure_file(
input : files('../test.service.in'),
output : '@0@.service'.format(name),
- configuration : integration_test_template['configuration'],
+ # Disable user service manager by default for performance.
+ configuration : integration_test_template['configuration'] + {
+ 'wants' : '',
+ 'after' : '',
+ },
)
foreach testcase : [
'configuration' : {
'memory-accounting' : 'no',
'command' : testdata_dir / 'units/%N.sh',
- 'wants' : '',
- 'after' : '',
+ 'wants' : 'multi-user.target user@4711.service',
+ 'after' : 'user@4711.service',
},
'cmdline' : [],
'credentials' : [],
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=%N
-Wants=basic.target network.target multi-user.target user@4711.service @wants@
-After=basic.target network.target user@4711.service @after@
+Wants=basic.target network.target @wants@
+After=basic.target network.target @after@
Before=getty-pre.target
[Service]