Skip to content

Commit

Permalink
test(build-std): download deps first
Browse files Browse the repository at this point in the history
So that we can assert the full output of `cargo test` without wildcard
  • Loading branch information
weihanglo committed Nov 26, 2024
1 parent 8ba3ec2 commit 47c2095
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 47c2095

Please sign in to comment.