Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd-executor should not call log_set_always_reopen_console(true) when running tests #32414

Open
DaanDeMeyer opened this issue Apr 22, 2024 · 3 comments
Labels
bug 🐛 Programming errors, that need preferential fixing pid1 tests

Comments

@DaanDeMeyer
Copy link
Contributor

systemd version the issue has been seen with

main

Used distribution

No response

Linux kernel version used

No response

CPU architectures issue was seen on

None

Component

No response

Expected behaviour you didn't see

No response

Unexpected behaviour you saw

log_set_always_reopen_console(true) means we will never log to stderr, which means that either we get the systemd-executor logs on /dev/console, or we got no logs at all during tests such as test-execute when running it from a terminal.

Steps to reproduce the problem

No response

Additional program output to the terminal or log subsystem illustrating the issue

No response

@DaanDeMeyer DaanDeMeyer added the bug 🐛 Programming errors, that need preferential fixing label Apr 22, 2024
@bluca
Copy link
Member

bluca commented Apr 22, 2024

there were some early boot/late shutdown shenanigans there, that I cannot quite remember the details of

@DaanDeMeyer
Copy link
Contributor Author

I'm not saying we should drop it unconditionally, but when running unit tests it does not make sense to enable it.

@bluca
Copy link
Member

bluca commented Apr 22, 2024

Yeah that makes sense, also dropping it if it doesn't cause any issues or there are other workarounds would be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing pid1 tests
Development

No branches or pull requests

3 participants