mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
agent/rustjail: add unit test for pivot_rootfs
Add unit test for pivot_rootfs increasing the code coverage of mount.rs Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
7cf0fd95f1
commit
25c91afbea
@ -1017,4 +1017,10 @@ mod tests {
|
||||
);
|
||||
assert!(ret.is_ok(), "Should pass. Got: {:?}", ret);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_pivot_root() {
|
||||
let ret = pivot_rootfs("/tmp");
|
||||
assert!(ret.is_ok(), "Should pass. Got: {:?}", ret);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user