Skip to content
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

test: migrate install* and inheritable_workspace_fields to snapbox #14170

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eth3lbert
Copy link
Contributor

What does this PR try to resolve?

Part of #14039.

Migrate following to snapbox:

  • tests/testsuite/inheritable_workspace_fields.rs
  • tests/testsuite/install.rs
  • tests/testsuite/install_upgrade.rs

@rustbot
Copy link
Collaborator

rustbot commented Jun 30, 2024

r? @weihanglo

rustbot has assigned @weihanglo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 30, 2024
@eth3lbert eth3lbert force-pushed the snapbox-i branch 3 times, most recently from 6810f0d to c27d3f9 Compare June 30, 2024 07:01
@@ -1429,6 +1385,7 @@ fn use_path_workspace() {
assert_eq!(lock, lock2, "different lockfiles");
}

#[allow(deprecated)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

with_stderr_does_not_contain is being used in this function.

// Particularly avoid "Installed package `ws-root v0.1.0 ([..]])` (executable `ws-member`)":
.with_stderr_does_not_contain("ws-member")
.run();
}

#[allow(deprecated)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

with_stderr_does_not_contain is being used in this function.

.run();
}

#[allow(deprecated)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

with_stderr_does_not_contain is being used in this function.

Comment on lines +2091 to +2106
.with_stderr_data(str![[r#"
[UPDATING] git repository `[ROOTURL]/foo`
[ERROR] invalid type: integer `3`, expected a boolean
--> home/.cargo/git/checkouts/foo-[HASH]/[..]/Cargo.toml:6:27
|
6 | incremental = 3
| ^
|
[ERROR] invalid type: integer `3`, expected a boolean
--> home/.cargo/git/checkouts/foo-[HASH]/[..]/Cargo.toml:6:27
|
6 | incremental = 3
| ^
|

"#]])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if the duplicated error message shown here is correct. Therefore, I'm currently avoiding redacting with glob intentionally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants