Skip to content

Commit

Permalink
test: validate network cgroup resources
Browse files Browse the repository at this point in the history
Signed-off-by: moz-sec <[email protected]>
  • Loading branch information
moz-sec committed Nov 25, 2024
1 parent b332eb0 commit c0eb602
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/contest/contest/src/tests/cgroups/relative_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,15 @@ fn test_relative_network_cgroups() -> TestResult {
let if_name = "lo";
let spec = test_result!(create_spec(cgroup_name, id, prio, if_name));

test_outside_container(spec, &|data| {
let test_result = test_outside_container(spec, &|data| {
test_result!(check_container_created(&data));
TestResult::Passed
})
});
if let TestResult::Failed(_) = test_result {
return test_result;
}

TestResult::Passed
}

fn can_run() -> bool {
Expand Down

0 comments on commit c0eb602

Please sign in to comment.