Skip to content

test(cli-rustup): migrate to .expect() APIs #4365

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 3 commits into from
Jun 5, 2025

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Jun 3, 2025

Part of #4359.

Warning

This PR is very long. I won't suggest reviewing it until it is marked ready.

SemanticDiff

@rami3l rami3l changed the title test(clitools): allow OsStr-like args in Config::expect*() test(cli-rustup): migrate to .expect() APIs Jun 3, 2025
@rami3l rami3l force-pushed the test-new-api-6 branch 2 times, most recently from 05520b7 to bd65f73 Compare June 3, 2025 15:50
@rami3l rami3l marked this pull request as ready for review June 3, 2025 16:02
@rami3l rami3l requested a review from Copilot June 3, 2025 16:04
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the CLI tests to use the updated .expect() APIs.

  • Introduces a new remove_redactions method in the Assert struct.
  • Updates expect and expect_with_env functions to be generic over types implementing AsRef with added Debug and Clone bounds, and changes how the command is executed by converting the first argument with to_str().

@rami3l rami3l added this pull request to the merge queue Jun 5, 2025
@rami3l
Copy link
Member Author

rami3l commented Jun 5, 2025

@djc Many thanks for the reviewing efforts! The remaining patches should be significantly shorter :]

Merged via the queue into rust-lang:master with commit 0f193bc Jun 5, 2025
29 checks passed
@rami3l rami3l deleted the test-new-api-6 branch June 5, 2025 09:07
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