test(build-std): download deps first

So that we can assert the full output of `cargo test` without wildcard
This commit is contained in:
Weihang Lo 2024-11-26 13:39:33 -05:00
parent 8ba3ec2895
commit 47c2095b1d
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7

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