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/initsymlink_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/initsymlink_test.go')
| -rw-r--r-- | container/initsymlink_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/container/initsymlink_test.go b/container/initsymlink_test.go index 0687afde..db1c1a5e 100644 --- a/container/initsymlink_test.go +++ b/container/initsymlink_test.go @@ -12,7 +12,7 @@ func TestSymlinkOp(t *testing.T) { LinkName: "/etc/static/nixos", }, nil, nil, []kexpect{ {"mkdirAll", expectArgs{"/sysroot/etc", os.FileMode(0700)}, nil, errUnique}, - }, wrapErrSelf(errUnique)}, + }, errUnique}, {"abs", &Params{ParentPerm: 0755}, &SymlinkOp{ Target: MustAbs("/etc/mtab"), @@ -26,7 +26,7 @@ func TestSymlinkOp(t *testing.T) { Dereference: true, }, []kexpect{ {"readlink", expectArgs{"/etc/mtab"}, "/proc/mounts", errUnique}, - }, wrapErrSelf(errUnique), nil, nil}, + }, errUnique, nil, nil}, {"success noderef", &Params{ParentPerm: 0700}, &SymlinkOp{ Target: MustAbs("/etc/nixos"), |
