Skip to content

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

Merged
rami3l merged 3 commits intorust-lang:masterfrom
rami3l:test-new-api-6
Jun 5, 2025
Merged

test(cli-rustup): migrate to .expect() APIs#4365
rami3l merged 3 commits intorust-lang:masterfrom
rami3l:test-new-api-6

Conversation

@rami3l
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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.

3 participants