-
Notifications
You must be signed in to change notification settings - Fork 59
check-sof-logger: Switch to use is_firmware_file_zephyr #1088
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-sof-logger: Switch to use is_firmware_file_zephyr #1088
Conversation
The is_zephyr check looks at the number of 'zephyr' strings in the LDC file while the is_firmware_file_zephyr is doing the same on the actual firmware file. It has been observed that the is_zephyr function can get the detection wrong and reports false for a zephyr firmware. Note also that virtually only the check-sof-logger is using the is_zephyr call, all other test cases use the is_firmware_file_zephyr call. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
marc-hb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only minor concern is: now this test requires the firmware to have been loaded at least once on this linux boot so the firmware file name can be extracted from the kernel logs. There's a good chance this is already required for some other reason, so be it.
Approved assuming the tests are passing. Note PR testing does not test MTL yet.
While in the check-sof-logger.sh context please review one line long but important fix #1086 in the same test.
|
@marc-hb, it is kind of hard to test if the firmware logging is working without a loaded firmware, no? |
This test unloads and reloads the firmware, using the firmware boot banner as a sanity check. So in theory this test can work while being the first to load the firmware. But now this won't work anymore because Minor new requirement, no big deal. |
Hrm, I'm not sure about that as the test will first reloads the drivers, thus boots the firmware then it will starts the logger to fetch the logs: Or am I looking at it in a wrong way? |
|
All check-sof-logger cases are passing |
Then we're good. I guess I had These dependencies are very brittle, seems more complicated than booting an OS :-) |
The is_zephyr check looks at the number of 'zephyr' strings in the LDC file while the is_firmware_file_zephyr is doing the same on the actual firmware file.
It has been observed that the is_zephyr function can get the detection wrong and reports false for a zephyr firmware.
Note also that virtually only the check-sof-logger is using the is_zephyr call, all other test cases use the is_firmware_file_zephyr call.