mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +00:00
ut: skip TestBindUnmountContainerRootfsENOENTNotError for non-root
mount syscall requires root. Fixes: #1898 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
c4583f4486
commit
3063391334
@ -344,6 +344,9 @@ func TestIsEphemeralStorage(t *testing.T) {
|
||||
// or directory attempting to be unmounted doesn't exist, then it
|
||||
// is not considered an error
|
||||
func TestBindUnmountContainerRootfsENOENTNotError(t *testing.T) {
|
||||
if os.Getuid() != 0 {
|
||||
t.Skip("Test disabled as requires root user")
|
||||
}
|
||||
testMnt := "/tmp/test_mount"
|
||||
sID := "sandIDTest"
|
||||
cID := "contIDTest"
|
||||
|
Loading…
Reference in New Issue
Block a user