diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-14 21:36:22 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-14 21:36:22 +0900 |
| commit | 0e543a58b36d4ab5d61c02ce93cf72bf2f218857 (patch) | |
| tree | ae36b0a71c8c8e0275f72dd2f1593fd7cfa33d8f /hst/fsephemeral_test.go | |
| parent | c989e7785aa1ca5bf94aef5e096c86ae9af345df (diff) | |
hst/fs: valid method on underlying interface
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsephemeral_test.go')
| -rw-r--r-- | hst/fsephemeral_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hst/fsephemeral_test.go b/hst/fsephemeral_test.go index f003a928..320c12fa 100644 --- a/hst/fsephemeral_test.go +++ b/hst/fsephemeral_test.go @@ -10,14 +10,14 @@ import ( func TestFSEphemeral(t *testing.T) { checkFs(t, "ephemeral", []fsTestCase{ - {"nil", (*hst.FSEphemeral)(nil), nil, nil, nil, "<invalid>"}, + {"nil", (*hst.FSEphemeral)(nil), false, nil, nil, nil, "<invalid>"}, {"full", &hst.FSEphemeral{ Dst: m("/run/user/65534"), Write: true, Size: 1 << 10, Perm: 0700, - }, container.Ops{&container.MountTmpfsOp{ + }, true, container.Ops{&container.MountTmpfsOp{ FSName: "ephemeral", Path: m("/run/user/65534"), Flags: syscall.MS_NOSUID | syscall.MS_NODEV, @@ -26,7 +26,7 @@ func TestFSEphemeral(t *testing.T) { }}, m("/run/user/65534"), nil, "w+ephemeral(-rwx------):/run/user/65534"}, - {"cover ro", &hst.FSEphemeral{Dst: m("/run/nscd")}, + {"cover ro", &hst.FSEphemeral{Dst: m("/run/nscd")}, true, container.Ops{&container.MountTmpfsOp{ FSName: "readonly", Path: m("/run/nscd"), @@ -39,7 +39,7 @@ func TestFSEphemeral(t *testing.T) { Dst: hst.AbsTmp, Write: true, Size: -1, - }, container.Ops{&container.MountTmpfsOp{ + }, true, container.Ops{&container.MountTmpfsOp{ FSName: "ephemeral", Path: hst.AbsTmp, Flags: syscall.MS_NOSUID | syscall.MS_NODEV, |
