Skip to content

sanitycheck: order results.csv and discards.csv deterministically #15313

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

Merged

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Apr 9, 2019

One of the first things needed when comparing builds of tests across
different environments/systems is to make sure the same (sub)tests were
selected and run in the first place. For that purpose sort the output of
--testcase-report and --discard-report as they were in random order.

Actually make the entire class TestInstance sortable by adding a
standard __lt__() method comparing unique instance names; it could be
useful again.

Signed-off-by: Marc Herbert [email protected]

One of the first things needed when comparing builds of tests across
different environments/systems is to make sure the same (sub)tests were
selected and run in the first place. For that purpose sort the output of
--testcase-report and --discard-report as they were in random order.

Actually make the entire class TestInstance sortable by adding a
standard __lt__() method comparing unique instance names; it could be
useful again.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb added area: Sanitycheck Sanitycheck has been renamed to Twister area: Testing area: Test Framework Issues related not to a particular test, but to the framework instead Enhancement Changes/Updates/Additions to existing features labels Apr 10, 2019
@marc-hb marc-hb added this to the v1.14.0 milestone Apr 10, 2019
@nashif nashif modified the milestones: v1.14.0, future Apr 12, 2019
@nashif nashif merged commit 0f7255c into zephyrproject-rtos:master Apr 17, 2019
@marc-hb marc-hb deleted the sanitycheck-deterministic-reports branch April 20, 2019 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sanitycheck Sanitycheck has been renamed to Twister area: Test Framework Issues related not to a particular test, but to the framework instead Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants