1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-06-03 13:26:13 +02:00
youki/tests/integration_test/src/tests/lifecycle/start.rs

12 lines
346 B
Rust
Raw Normal View History

use super::get_result_from_output;
use crate::utils::test_utils::start_container;
use anyhow::Result;
use std::path::Path;
pub fn start(project_path: &Path, id: &str) -> Result<()> {
let res = start_container(id, project_path)
.expect("failed to execute start command")
.wait_with_output();
get_result_from_output(res)
}