container: wrap container init start errors
All checks were successful
Test / Create distribution (push) Successful in 35s
Test / Sandbox (push) Successful in 1m59s
Test / Hakurei (push) Successful in 3m20s
Test / Sandbox (race detector) (push) Successful in 4m26s
Test / Hpkg (push) Successful in 3m47s
Test / Hakurei (race detector) (push) Successful in 5m21s
Test / Flake checks (push) Successful in 1m35s
All checks were successful
Test / Create distribution (push) Successful in 35s
Test / Sandbox (push) Successful in 1m59s
Test / Hakurei (push) Successful in 3m20s
Test / Sandbox (race detector) (push) Successful in 4m26s
Test / Hpkg (push) Successful in 3m47s
Test / Hakurei (race detector) (push) Successful in 5m21s
Test / Flake checks (push) Successful in 1m35s
This helps indicate the exact origin and nature of the error. This eliminates generic WrapErr from container. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -51,7 +51,7 @@ func TestInitEntrypoint(t *testing.T) {
|
||||
{"lockOSThread", expectArgs{}, nil, nil},
|
||||
{"getpid", expectArgs{}, 1, nil},
|
||||
{"setPtracer", expectArgs{uintptr(0)}, nil, nil},
|
||||
{"receive", expectArgs{"HAKUREI_SETUP", new(initParams), new(uintptr)}, nil, ErrNotSet},
|
||||
{"receive", expectArgs{"HAKUREI_SETUP", new(initParams), new(uintptr)}, nil, ErrReceiveEnv},
|
||||
{"fatal", expectArgs{[]any{"HAKUREI_SETUP not set"}}, nil, nil},
|
||||
},
|
||||
}, nil},
|
||||
@@ -410,9 +410,7 @@ func TestInitEntrypoint(t *testing.T) {
|
||||
{"mount", expectArgs{"", "/", "", uintptr(0x8c000), ""}, nil, nil},
|
||||
/* begin early */
|
||||
{"evalSymlinks", expectArgs{"/"}, "/", errUnique},
|
||||
{"printBaseErr", expectArgs{errUnique, "cannot prepare op at index 0:"}, nil, nil},
|
||||
{"beforeExit", expectArgs{}, nil, nil},
|
||||
{"exit", expectArgs{1}, nil, nil},
|
||||
{"fatalf", expectArgs{"cannot prepare op at index %d: %v", []any{0, errUnique}}, nil, nil},
|
||||
/* end early */
|
||||
},
|
||||
}, nil},
|
||||
@@ -798,9 +796,7 @@ func TestInitEntrypoint(t *testing.T) {
|
||||
{"verbosef", expectArgs{"%s %s", []any{"mounting", &MountProcOp{Target: MustAbs("/proc/")}}}, nil, nil},
|
||||
{"mkdirAll", expectArgs{"/sysroot/proc", os.FileMode(0755)}, nil, nil},
|
||||
{"mount", expectArgs{"proc", "/sysroot/proc", "proc", uintptr(0xe), ""}, nil, errUnique},
|
||||
{"printBaseErr", expectArgs{errUnique, "cannot apply op at index 1:"}, nil, nil},
|
||||
{"beforeExit", expectArgs{}, nil, nil},
|
||||
{"exit", expectArgs{1}, nil, nil},
|
||||
{"fatalf", expectArgs{"cannot apply op at index %d: %v", []any{1, errUnique}}, nil, nil},
|
||||
/* end apply */
|
||||
},
|
||||
}, nil},
|
||||
|
||||
Reference in New Issue
Block a user