diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-29 02:04:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-29 02:04:09 +0900 |
| commit | 4da6463135f63658365d837e8d7dd69f0ca1468e (patch) | |
| tree | f68352b9b472c0883a3dc2e1911707ed46f8b232 /container/autoroot_test.go | |
| parent | eb3385d490523262e26b6cb691a5e18a07a8b26d (diff) | |
container/init: unwrap path errors
These are also now handled by init properly, so wrapping them in self is meaningless and unreachable.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoroot_test.go')
| -rw-r--r-- | container/autoroot_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container/autoroot_test.go b/container/autoroot_test.go index 13319de7..3678725a 100644 --- a/container/autoroot_test.go +++ b/container/autoroot_test.go @@ -20,7 +20,7 @@ func TestAutoRootOp(t *testing.T) { Flags: BindWritable, }, []kexpect{ {"readdir", expectArgs{"/"}, stubDir(), errUnique}, - }, wrapErrSelf(errUnique), nil, nil}, + }, errUnique, nil, nil}, {"early", &Params{ParentPerm: 0750}, &AutoRootOp{ Host: MustAbs("/"), @@ -29,7 +29,7 @@ func TestAutoRootOp(t *testing.T) { {"readdir", expectArgs{"/"}, stubDir("bin", "dev", "etc", "home", "lib64", "lost+found", "mnt", "nix", "proc", "root", "run", "srv", "sys", "tmp", "usr", "var"), nil}, {"evalSymlinks", expectArgs{"/bin"}, "", errUnique}, - }, wrapErrSelf(errUnique), nil, nil}, + }, errUnique, nil, nil}, {"apply", &Params{ParentPerm: 0750}, &AutoRootOp{ Host: MustAbs("/"), @@ -51,7 +51,7 @@ func TestAutoRootOp(t *testing.T) { }, nil, []kexpect{ {"verbosef", expectArgs{"%s %s", []any{"mounting", &BindMountOp{MustAbs("/usr/bin"), MustAbs("/bin"), MustAbs("/bin"), BindWritable}}}, nil, nil}, {"stat", expectArgs{"/host/usr/bin"}, isDirFi(false), errUnique}, - }, wrapErrSelf(errUnique)}, + }, errUnique}, {"success pd", &Params{ParentPerm: 0750}, &AutoRootOp{ Host: MustAbs("/"), |
