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>
13 lines
331 B
Rust
13 lines
331 B
Rust
use anyhow::Result;
|
|
|
|
use super::get_result_from_output;
|
|
use crate::utils::kill_container;
|
|
use std::path::Path;
|
|
|
|
pub fn kill(project_path: &Path, id: &str) -> Result<()> {
|
|
let res = kill_container(id, project_path)
|
|
.expect("failed to execute kill command")
|
|
.wait_with_output();
|
|
get_result_from_output(res)
|
|
}
|