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

Check all log locations for if serial console enabled #3614

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kat-lsg-dev
Copy link
Contributor

There is a potential bug in the logic of this test, where only some log locations are checked for the target substring. I manually ran the commands on an image which failed this test and discovered that the substring could be detected in the journalctl log. The test now checks all possible locations for the substring to ensure that it will be detected if present.

@kat-lsg-dev kat-lsg-dev force-pushed the katm/serial-console-fix branch from b807353 to 9b68adf Compare January 24, 2025 20:24
@kat-lsg-dev kat-lsg-dev marked this pull request as ready for review January 24, 2025 20:31
@squirrelsc
Copy link
Member

Make commits meaningful.

@kat-lsg-dev kat-lsg-dev force-pushed the katm/serial-console-fix branch 2 times, most recently from ad3935a to 1dfcb9a Compare January 25, 2025 00:05
2. Check expected setting from kernel command line.
2.1. Expected to see 'console=ttyAMA0' for aarch64.
2.2. Expected to see 'console=ttyS0' for x86_64.
2.3. Expected to see 'uart0: console 115200,n,8,1 for FreeBSD.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'uart0: console (115200,n,8,1)'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, fixed that

@kat-lsg-dev kat-lsg-dev force-pushed the katm/serial-console-fix branch from f820989 to 1229f42 Compare January 27, 2025 17:13
@squirrelsc
Copy link
Member

@LiliDeng LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants