Skip to content

test-runner: Clean up device path tests #1527

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
merged 1 commit into from
Jan 25, 2025

Conversation

nicholasbishop
Copy link
Member

Split the conversion tests out into separate functions. This is a bit more verbose, but makes it clearer exactly what is being tested.

The conversion tests now use a hardcoded test DevicePath, so we no longer need to cfg the tests for different arches based on what devices QEMU creates. This also makes it clearer what effects DisplayOnly and AllowShortcuts can have on the text conversion.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Split the conversion tests out into separate functions. This is a bit more
verbose, but makes it clearer exactly what is being tested.

The conversion tests now use a hardcoded test `DevicePath`, so we no longer need
to `cfg` the tests for different arches based on what devices QEMU creates. This
also makes it clearer what effects `DisplayOnly` and `AllowShortcuts` can have
on the text conversion.
Copy link
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

LGTM!

@phip1611 phip1611 added this pull request to the merge queue Jan 25, 2025
Merged via the queue into rust-osdev:main with commit a950682 Jan 25, 2025
15 checks passed
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.

2 participants