test(build-std): download deps first (#14861)

### 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.
This commit is contained in:
Ed Page 2024-11-26 19:12:16 +00:00 committed by GitHub
commit c4a9e45519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()