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:
Julio Montes 2020-09-10 10:34:48 -05:00
parent 7cf0fd95f1
commit 25c91afbea

View File

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