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

twister: add dt_node_prop_enabled support #83035

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

hakehuang
Copy link
Collaborator

@hakehuang hakehuang commented Dec 16, 2024

using "dt_node_prop_enabled" to filter out supported platforms

  1. check node existing.
  2. check prop in node.
  3. check the prop is True.

fixes: #83036

@hakehuang
Copy link
Collaborator Author

with this fix the build is filter out correctly

Renaming output directory to /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out.1
INFO    - Using Ninja..
INFO    - Zephyr version: v4.0.0-2093-g41cbb5ee00ec
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/testplan.json
INFO    - JOBS: 16
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - Total complete:    1/   1  100%  built (not run):    0, filtered:    1, failed:    0, error:    0
INFO    - 1 test scenarios (1 configurations) selected, 1 configurations filtered (0 by static filter, 1 at runtime).
INFO    - 0 of 0 executed test configurations passed (0.00%), 0 built (not run), 0 failed, 0 errored, with no warnings in 6.78 seconds.
INFO    - 0 test configurations executed on platforms, 0 test configurations were only built.
INFO    - Saving reports...
INFO    - Writing JSON report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/twister.json
INFO    - Writing xunit report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/twister_report.xml...
INFO    - Run completed

and mimxrt1170_evk works fine

Renaming output directory to /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out.2
INFO    - Using Ninja..
INFO    - Zephyr version: v4.0.0-2093-g41cbb5ee00ec
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/testplan.json
INFO    - JOBS: 16
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - Total complete:    1/   1  100%  built (not run):    1, filtered:    0, failed:    0, error:    0
INFO    - 1 test scenarios (1 configurations) selected, 0 configurations filtered (0 by static filter, 0 at runtime).
INFO    - 0 of 1 executed test configurations passed (0.00%), 1 built (not run), 0 failed, 0 errored, with no warnings in 16.06 seconds.
INFO    - 0 test configurations executed on platforms, 1 test configurations were only built.
INFO    - Saving reports...
INFO    - Writing JSON report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/twister.json
INFO    - Writing xunit report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report /home/shared/disk/zephyr_project/zephyr_test/zephyr/twister-out/twister_report.xml...
INFO    - Run completed

decsny
decsny previously approved these changes Dec 17, 2024
@@ -9,5 +9,5 @@ common:
- pytest
tests:
sample.boards.mimxrt1170_evk.magic_addr:
filter: CONFIG_MEMC_NXP_FLEXRAM
filter: CONFIG_MEMC_NXP_FLEXRAM and dt_node_prop_enabled("flexram", "flexram,has-magic-addr")
Copy link
Member

Choose a reason for hiding this comment

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

do you still need DT_HAS_NXP_FLEXRAM_ENABLED here? this is enabled depending on DTS already.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, we can remove the CONFIG_MEMC_NXP_FLEXRAM updated

using "dt_node_prop_enabled" to filter out supported platforms
1. check node existing.
2. check prop in node.
3. check the prop is True.

Signed-off-by: Hake Huang <[email protected]>
@decsny decsny added the Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. label Dec 20, 2024
@decsny
Copy link
Member

decsny commented Dec 20, 2024

the magic address testcase blocking CI now due to testing on rt10xx

@kartben kartben merged commit 15edce2 into zephyrproject-rtos:main Dec 20, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples area: Twister Twister Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. platform: NXP NXP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mimxrt10xx series use flexram-control but does not support magic feature
7 participants