hst/fs: valid method on underlying interface
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 1m59s
Test / Hakurei (push) Successful in 3m6s
Test / Hpkg (push) Successful in 4m16s
Test / Sandbox (race detector) (push) Successful in 4m24s
Test / Hakurei (race detector) (push) Successful in 5m7s
Test / Flake checks (push) Successful in 1m39s
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 1m59s
Test / Hakurei (push) Successful in 3m6s
Test / Hpkg (push) Successful in 4m16s
Test / Sandbox (race detector) (push) Successful in 4m24s
Test / Hakurei (race detector) (push) Successful in 5m7s
Test / Flake checks (push) Successful in 1m39s
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -9,14 +9,14 @@ import (
|
||||
|
||||
func TestFSBind(t *testing.T) {
|
||||
checkFs(t, "bind", []fsTestCase{
|
||||
{"nil", (*hst.FSBind)(nil), nil, nil, nil, "<invalid>"},
|
||||
{"nil", (*hst.FSBind)(nil), false, nil, nil, nil, "<invalid>"},
|
||||
|
||||
{"full", &hst.FSBind{
|
||||
Dst: m("/dev"),
|
||||
Src: m("/mnt/dev"),
|
||||
Optional: true,
|
||||
Device: true,
|
||||
}, container.Ops{&container.BindMountOp{
|
||||
}, true, container.Ops{&container.BindMountOp{
|
||||
Source: m("/mnt/dev"),
|
||||
Target: m("/dev"),
|
||||
Flags: container.BindWritable | container.BindDevice | container.BindOptional,
|
||||
@@ -28,7 +28,7 @@ func TestFSBind(t *testing.T) {
|
||||
Src: m("/mnt/dev"),
|
||||
Write: true,
|
||||
Device: true,
|
||||
}, container.Ops{&container.BindMountOp{
|
||||
}, true, container.Ops{&container.BindMountOp{
|
||||
Source: m("/mnt/dev"),
|
||||
Target: m("/dev"),
|
||||
Flags: container.BindWritable | container.BindDevice,
|
||||
@@ -39,7 +39,7 @@ func TestFSBind(t *testing.T) {
|
||||
Dst: m("/tmp"),
|
||||
Src: m("/mnt/tmp"),
|
||||
Write: true,
|
||||
}, container.Ops{&container.BindMountOp{
|
||||
}, true, container.Ops{&container.BindMountOp{
|
||||
Source: m("/mnt/tmp"),
|
||||
Target: m("/tmp"),
|
||||
Flags: container.BindWritable,
|
||||
@@ -49,7 +49,7 @@ func TestFSBind(t *testing.T) {
|
||||
{"full no flags", &hst.FSBind{
|
||||
Dst: m("/etc"),
|
||||
Src: m("/mnt/etc"),
|
||||
}, container.Ops{&container.BindMountOp{
|
||||
}, true, container.Ops{&container.BindMountOp{
|
||||
Source: m("/mnt/etc"),
|
||||
Target: m("/etc"),
|
||||
}}, m("/etc"), ms("/mnt/etc"),
|
||||
@@ -57,7 +57,7 @@ func TestFSBind(t *testing.T) {
|
||||
|
||||
{"nil dst", &hst.FSBind{
|
||||
Src: m("/"),
|
||||
}, container.Ops{&container.BindMountOp{
|
||||
}, true, container.Ops{&container.BindMountOp{
|
||||
Source: m("/"),
|
||||
Target: m("/"),
|
||||
}}, m("/"), ms("/"),
|
||||
|
||||
Reference in New Issue
Block a user