1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-21 23:16:09 +02:00
youki/tests/integration_test/src/tests/lifecycle/kill.rs
Yashodhan 80f1f36ae9
Refactor test dir structure (#2421)
* 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>
2023-10-10 21:00:02 +09:00

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