1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-10 09:36:13 +02:00
youki/tests/contest/contest/src/tests/lifecycle/start.rs
Toru Komatsu 464344923f
Name the test tools `contest` (#2486)
* 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>
2024-01-12 14:28:47 +05:30

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)
}