mirror of
https://github.com/containers/youki
synced 2024-05-10 09:36:13 +02:00
464344923f
* Name the test tools `contest` Signed-off-by: utam0k <k0ma@utam0k.jp> * Address the feedbacks Signed-off-by: utam0k <k0ma@utam0k.jp> * Fix a build error Signed-off-by: utam0k <k0ma@utam0k.jp> * Fix a workflow Signed-off-by: utam0k <k0ma@utam0k.jp> * Address the feedbacks Signed-off-by: utam0k <k0ma@utam0k.jp> --------- Signed-off-by: utam0k <k0ma@utam0k.jp>
12 lines
346 B
Rust
12 lines
346 B
Rust
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)
|
|
}
|