mirror of
https://github.com/systemd/systemd.git
synced 2024-12-21 13:34:21 +03:00
TEST-71-HOSTNAME: do not start user session
The user session may trigger hostnamed, and the job of stopping hostnamed may be cancelled, and the test may fail: ``` [ 4633.613578] TEST-71-HOSTNAME.sh[175]: + stop_hostnamed [ 4633.613578] TEST-71-HOSTNAME.sh[175]: + systemctl stop systemd-hostnamed.service [ 4633.664670] systemd[1]: Stopping systemd-hostnamed.service - Hostname Service... [ 4636.022277] systemd-logind[121]: New session c2 of user root. [ 4636.032532] systemd[1]: Created slice user-0.slice - User Slice of UID 0. [ 4636.042675] systemd[1]: Starting user-runtime-dir@0.service - User Runtime Directory /run/user/0... [ 4636.176140] systemd[1]: Finished user-runtime-dir@0.service - User Runtime Directory /run/user/0. [ 4636.202951] systemd[1]: Starting user@0.service - User Manager for UID 0... [ 4636.292204] systemd-logind[121]: New session c3 of user root. [ 4636.300065] (systemd)[268]: pam_unix(systemd-user:session): session opened for user root(uid=0) by root(uid=0) [ 4636.757667] systemd[268]: Queued start job for default target default.target. [ 4636.774419] systemd[268]: Created slice app.slice - User Application Slice. [ 4636.774579] systemd[268]: Started systemd-tmpfiles-clean.timer - Daily Cleanup of User's Temporary Directories. [ 4636.774747] systemd[268]: Reached target paths.target - Paths. [ 4636.776418] systemd[268]: Reached target sysinit.target - System Initialization. [ 4636.776604] systemd[268]: Reached target timers.target - Timers. [ 4636.784997] systemd[268]: Starting dbus.socket - D-Bus User Message Bus Socket... [ 4636.799472] systemd[268]: Starting systemd-tmpfiles-setup.service - Create User Files and Directories... [ 4637.027125] systemd[268]: Finished systemd-tmpfiles-setup.service - Create User Files and Directories. [ 4637.031721] systemd[268]: Listening on dbus.socket - D-Bus User Message Bus Socket. [ 4637.036189] systemd[268]: Reached target sockets.target - Sockets. [ 4637.036373] systemd[268]: Reached target basic.target - Basic System. [ 4637.036558] systemd[268]: Reached target default.target - Main User Target. [ 4637.036646] systemd[268]: Startup finished in 702ms. [ 4637.049075] systemd[1]: Started user@0.service - User Manager for UID 0. [ 4637.075263] systemd[1]: Started session-c2.scope - Session c2 of User root. [ 4637.084917] login[136]: pam_unix(login:session): session opened for user root(uid=0) by root(uid=0) [ 4637.117348] login[136]: ROOT LOGIN ON pts/0 [ 4637.238572] systemctl[261]: Job for systemd-hostnamed.service canceled. [ 4637.290369] systemd[1]: TEST-71-HOSTNAME.service: Main process exited, code=exited, status=1/FAILURE ``` Fixes #35643.
This commit is contained in:
parent
8a135111ca
commit
182ffb5819
@ -3,5 +3,11 @@
|
||||
integration_tests += [
|
||||
integration_test_template + {
|
||||
'name' : fs.name(meson.current_source_dir()),
|
||||
'configuration' : integration_test_template['configuration'] + {
|
||||
# Do not request user session, as it may trigger to start
|
||||
# hostnamed in an unexpected timing, and the test may fail.
|
||||
'wants' : 'multi-user.target',
|
||||
'after' : 'multi-user.target',
|
||||
},
|
||||
},
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user