Skip to content

Commit 8531fa7

Browse files
committed
test: Fix test-components/components trying to build target dir
Signed-off-by: Lann Martin <[email protected]>
1 parent d120905 commit 8531fa7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tests/test-components/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ fn main() {
2525
for package in packages {
2626
let crate_path = PathBuf::from("components").join(&package);
2727
let manifest_path = crate_path.join("Cargo.toml");
28+
if !manifest_path.exists() {
29+
eprintln!("No Cargo.toml in {crate_path:?}; skipping");
30+
continue;
31+
}
2832
let manifest = cargo_toml::Manifest::from_path(&manifest_path)
2933
.expect("failed to read and parse Cargo manifest");
3034

35+
eprintln!("Building test component {:?}", manifest.package().name());
36+
3137
// Build the test component
3238
let mut cargo = Command::new("cargo");
3339
cargo
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[workspace]
22
members = ["*"]
3+
exclude = ["target"]
34
resolver = "2"

0 commit comments

Comments
 (0)