-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
sanitycheck: Add Zephyr's version as a property to xml reports #29172
Conversation
This commit adds posibility to save zephyr version in the xml reports. It adds 'properties' attribute to testsuite attribute. 'properties' can contain multiple 'property' attributes. Zephyr version is added as such 'property'. Signed-off-by: Maciej Perkowski <[email protected]>
e861c0d
to
b8dd30b
Compare
I followed a scheme for junit report shown here: https://llg.cubic.org/docs/junit/ when adding 'properties' |
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.
Thanks! That looks pretty cool now!
Execution of ./scripts/sanitycheck --test tests/subsys/logging/log_immediate/lo gging.log_immediate.clean_output --platform nsim_hs --platform nsim_em
gave me the following sanity-out/sanitycheck.xml
.
<testsuites>
<testsuite errors="0" failures="0" name="nsim_hs" skipped="0" tests="1" time="3.599809">
<properties>
<property name="version" value="zephyr-v2.4.0-559-gb8dd30b2d6" />
</properties>
<testcase classname="nsim_hs:tests/subsys/logging/log_immediate/logging.log_immediate" name="tests/subsys/logging/log_immediate/logging.log_immediate.clean_output" time="3.599809" />
</testsuite>
<testsuite errors="0" failures="0" name="nsim_em" skipped="0" tests="1" time="3.685498">
<properties>
<property name="version" value="zephyr-v2.4.0-559-gb8dd30b2d6" />
</properties>
<testcase classname="nsim_em:tests/subsys/logging/log_immediate/logging.log_immediate" name="tests/subsys/logging/log_immediate/logging.log_immediate.clean_output" time="3.685498" />
</testsuite>
</testsuites>
My only comment would be to maybe move a platform name from testsute's "name" to the "platfrom" property. But I guess that could be done separately.
Adds function checking the version of zephyr, used for reporting Signed-off-by: Maciej Perkowski <[email protected]>
b8dd30b
to
7b5052b
Compare
This PR adds checking and reporting the version of Zephyr used by sanitycheck (via
git describe
)