Skip to content

Conversation

@tgross35
Copy link

@tgross35 tgross35 commented Dec 20, 2024

This is a revival of #38 (cc @bwidawsk) with the following changes:

  • Change from an Option<String> to a custom enum
  • Print the message in output, as is done by libtest when #[ignore = "foo"] is used
  • Drop the commits adding log reordering and "sloppy" comparison

Fixes #19

This runner will inspect Ok values to determine if the test should be
ignored ("skipped" for our purposes means runtime ignore). This can be
seem in terse or json output directly.

Co-authored-by: Ben Widawsky <ben@bwidawsk.net>
Fixes: LukasKalbertodt#19

(Most of this is from Ben, I just updated the types)
Co-authored-by: Ben Widawsky <ben@bwidawsk.net>

(most of this is from Ben)
@bugadani
Copy link

This PR would be very useful in probe-rs. The project (among other things) runs tests on embedded devices, and libtest-mimic just orchestrates and provides the output. We allow aborting a test run with ctrl-c, but we do it by aborting the process, which causes some problems with some devices. This PR would allow us to more gracefully exit.

@tgross35
Copy link
Author

@LukasKalbertodt would you be able to take a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime ignoring

2 participants