From e99d7affb0c128fa82722f9b3d79c99b5e5918cd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 11 Aug 2025 02:52:32 +0900 Subject: container: use absolute for pathname This is simultaneously more efficient and less error-prone. This change caused minor API changes in multiple other packages. Signed-off-by: Ophestra --- helper/container_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'helper/container_test.go') diff --git a/helper/container_test.go b/helper/container_test.go index 56adb8c5..2d1c256c 100644 --- a/helper/container_test.go +++ b/helper/container_test.go @@ -33,7 +33,10 @@ func TestContainer(t *testing.T) { testHelper(t, func(ctx context.Context, setOutput func(stdoutP, stderrP *io.Writer), stat bool) helper.Helper { return helper.New(ctx, container.MustAbs(os.Args[0]), "helper", argsWt, stat, argF, func(z *container.Container) { setOutput(&z.Stdout, &z.Stderr) - z.Bind("/", "/", 0).Proc("/proc").Dev("/dev", true) + z. + Bind(container.AbsFHSRoot, container.AbsFHSRoot, 0). + Proc(container.AbsFHSProc). + Dev(container.AbsFHSDev, true) }, nil) }) }) -- cgit v1.3.1