Skip to content

Commit

Permalink
test(build-std): download deps first (#14861)
Browse files Browse the repository at this point in the history
### What does this PR try to resolve?

Download dependencies first,
So that we can assert the full output of `cargo test` without wildcard.

This regressed since #14850

### How should we test and review this PR?

CI passes.
  • Loading branch information
epage authored Nov 26, 2024
2 parents 917e646 + 47c2095 commit c4a9e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/build-std/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ fn test_proc_macro() {
.file("src/lib.rs", "")
.build();

// Download dependencies first,
// so we can compare `cargo test` output without any wildcard
p.cargo("fetch").build_std().run();
p.cargo("test --lib")
.env_remove(cargo_util::paths::dylib_path_envvar())
.build_std()
Expand Down

0 comments on commit c4a9e45

Please sign in to comment.