vdev/commands/compose_tests/
stop.rs1use anyhow::Result;
2
3use crate::testing::{
4 integration::{ComposeTest, ComposeTestLocalConfig},
5 state::EnvsDir,
6};
7
8pub(crate) fn exec(
9 local_config: ComposeTestLocalConfig,
10 test_name: &str,
11 all_features: bool,
12) -> Result<()> {
13 if let Some(active) = EnvsDir::new(test_name).active()? {
14 ComposeTest::generate(local_config, test_name, active, all_features, 0)?.stop()
15 } else {
16 println!("No environment for {test_name} is active.");
17 Ok(())
18 }
19}