Path: blob/main/tools/ci/src/commands/integration_test_clean.rs
6598 views
use crate::{args::Args, Prepare, PreparedCommand};1use argh::FromArgs;2use xshell::cmd;34use super::get_integration_tests;56/// Cleans the build artifacts for all integration tests.7#[derive(FromArgs, Default)]8#[argh(subcommand, name = "integration-test-clean")]9pub struct IntegrationTestCleanCommand {}1011impl Prepare for IntegrationTestCleanCommand {12fn prepare<'a>(&self, sh: &'a xshell::Shell, _args: Args) -> Vec<PreparedCommand<'a>> {13get_integration_tests(sh)14.into_iter()15.map(|path| {16PreparedCommand::new::<Self>(17cmd!(sh, "cargo clean --manifest-path {path}/Cargo.toml"),18"Failed to clean integration test.",19)20})21.collect()22}23}242526