From 47c2095b1dd580a91e42cb6197b58a318526b8c4 Mon Sep 17 00:00:00 2001 From: Weihang Lo Date: Tue, 26 Nov 2024 13:39:33 -0500 Subject: [PATCH] test(build-std): download deps first So that we can assert the full output of `cargo test` without wildcard --- tests/build-std/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/build-std/main.rs b/tests/build-std/main.rs index 9906d0a890f..f8d5e748ac5 100644 --- a/tests/build-std/main.rs +++ b/tests/build-std/main.rs @@ -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()