mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-30 08:20:47 +08:00
cli-test: Respect CARGO_TARGET_DIR
Fix an error where cli-test would fail if CARGO_TARGET_DIR was being used.
This commit is contained in:
@@ -216,8 +216,9 @@ impl TestFormula {
|
||||
} else {
|
||||
"release"
|
||||
};
|
||||
let cargo_target_dir = env::var("CARGO_TARGET_DIR").unwrap_or("target".to_string());
|
||||
let path = Path::new(manifest.as_str());
|
||||
let path = path.parent().unwrap().join("target").join(profile);
|
||||
let path = path.parent().unwrap().join(cargo_target_dir).join(profile);
|
||||
|
||||
bins = format!("{}:{bins}", path.display());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user