speed up tests by doing rustup which

`cargo test` goes from 2.4s to 1.6s
This commit is contained in:
nora 2023-09-23 16:03:26 +02:00
parent ea5fb6e4ba
commit 50dc094ddd
7 changed files with 99 additions and 34 deletions

View file

@ -1,8 +1,10 @@
use anyhow::bail;
fn main() -> anyhow::Result<()> {
let cargo = std::env::var("MINIMIZE_CARGO").expect("MINIMIZE_CARGO");
if std::env::var("MINIMIZE_LINTS").as_deref() == Ok("1") {
std::process::Command::new("cargo")
std::process::Command::new(&cargo)
.arg("check")
.spawn()
.unwrap()
@ -18,7 +20,7 @@ fn main() -> anyhow::Result<()> {
testsuite::ensure_roots_kept(&proj_dir, roots)?;
let check = std::process::Command::new("cargo")
let check = std::process::Command::new(&cargo)
.arg("check")
.spawn()
.unwrap()