diff --git a/xtask/src/test.rs b/xtask/src/test.rs index c5b378da1..fd2379daa 100644 --- a/xtask/src/test.rs +++ b/xtask/src/test.rs @@ -18,12 +18,10 @@ pub fn run_tests(shell: Shell, mut args: Arguments) -> anyhow::Result<()> { }; let llvm_cov_nextest_flags: &[_] = if llvm_cov { &["llvm-cov", "--no-cfg-coverage", "--no-report", "nextest"] + } else if list { + &["nextest", "list"] } else { - if list { - &["nextest", "list"] - } else { - &["nextest", "run"] - } + &["nextest", "run"] }; log::info!("Generating .gpuconfig file based on gpus on the system");