mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
agent: skip test_load_kernel_module if non-root
We need root privilege to load a real kernel module. Fixes: #4704 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
cc4b9ac7cd
commit
4f53e010b4
@ -2058,6 +2058,7 @@ mod tests {
|
||||
let result = load_kernel_module(&m);
|
||||
assert!(result.is_err(), "load module should failed");
|
||||
|
||||
skip_if_not_root!();
|
||||
// case 3: normal module.
|
||||
// normally this module should eixsts...
|
||||
m.name = "bridge".to_string();
|
||||
|
Loading…
Reference in New Issue
Block a user