test(lesavka): isolate live server process build from coverage
This commit is contained in:
parent
2f9a150c37
commit
7e780ffaf0
@ -50,11 +50,18 @@ fn build_current_binary(name: &str) -> Option<PathBuf> {
|
|||||||
}
|
}
|
||||||
let cargo = option_env!("CARGO").unwrap_or("cargo");
|
let cargo = option_env!("CARGO").unwrap_or("cargo");
|
||||||
let target_dir = workspace_root().join("target/process-contract-debug");
|
let target_dir = workspace_root().join("target/process-contract-debug");
|
||||||
|
let _ = fs::remove_dir_all(&target_dir);
|
||||||
let mut command = Command::new(cargo);
|
let mut command = Command::new(cargo);
|
||||||
let status = command
|
let status = command
|
||||||
.current_dir(workspace_root())
|
.current_dir(workspace_root())
|
||||||
|
.env_remove("CARGO_BUILD_RUSTFLAGS")
|
||||||
.env_remove("CARGO_ENCODED_RUSTFLAGS")
|
.env_remove("CARGO_ENCODED_RUSTFLAGS")
|
||||||
|
.env_remove("CARGO_LLVM_COV")
|
||||||
|
.env_remove("CARGO_LLVM_COV_TARGET_DIR")
|
||||||
|
.env_remove("CARGO_TARGET_DIR")
|
||||||
|
.env_remove("LLVM_COV")
|
||||||
.env_remove("RUSTFLAGS")
|
.env_remove("RUSTFLAGS")
|
||||||
|
.env_remove("RUSTDOCFLAGS")
|
||||||
.env_remove("LLVM_PROFILE_FILE")
|
.env_remove("LLVM_PROFILE_FILE")
|
||||||
.arg("build")
|
.arg("build")
|
||||||
.arg("--target-dir")
|
.arg("--target-dir")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user