mirror of
https://github.com/containers/youki
synced 2024-05-21 23:16:09 +02:00
80f1f36ae9
* Move individual rust-oci-tests components in the tests dir We can use several things from test_framework and even integration_test for additional tests such as podman rootless and wasm tests Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> * fix scripts and docs for the new dir structure Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com> --------- Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
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)
|
|
}
|