-
Notifications
You must be signed in to change notification settings - Fork 3k
FLASHIAP test: skip test if test region overlaps code #9257
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
Conversation
@jeromecoutant, thank you for your changes. |
@@ -220,6 +222,9 @@ void flashiap_timing_test() | |||
utest_printf("\nFlash timing:\n"); | |||
uint32_t sector_size = flash_device.get_sector_size(end_address - 1UL); | |||
uint32_t base_address = end_address - sector_size; | |||
utest_printf("ROM ends at 0x%lx, test starts at 0x%lx\n", FLASHIAP_APP_ROM_END_ADDR, base_address); | |||
TEST_SKIP_UNLESS_MESSAGE(base_address >= FLASHIAP_APP_ROM_END_ADDR, "Test skipped. Test region overlaps code."); |
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.
You are also adding some debug prints , not only skip test?
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.
I can remove them, but it's practical in case of test skip to understand.
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.
I was referring to the commit message and PR title (does not cover adding debug msg). Otherwise looks fine to me
Any update ? |
Added storage team to review instead of core. Please review |
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.
LGTM.
CI started |
Test run: SUCCESSSummary: 9 of 9 test jobs passed |
Description
Test region check was made for all test cases except "FlashIAP - timing" one
Pull request type