aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/shim_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-29 04:09:42 +0900
committerOphestra <cat@gensokyo.uk>2025-10-29 04:11:49 +0900
commita52f7038e5a607dd0901244abb791c96deaf9c2d (patch)
tree2184b7313cf3b2d783778e8272ac22d0eaa1603f /internal/app/shim_test.go
parent274686d10d3386a41f8fb6bc3363269a734afe0e (diff)
internal/env: relocate from app
This package is much cleaner to stub independently, and makes no sense to lump into app. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/shim_test.go')
-rw-r--r--internal/app/shim_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/app/shim_test.go b/internal/app/shim_test.go
index e207dfda..19dedd6f 100644
--- a/internal/app/shim_test.go
+++ b/internal/app/shim_test.go
@@ -14,6 +14,7 @@ import (
"hakurei.app/container/seccomp"
"hakurei.app/container/stub"
"hakurei.app/hst"
+ "hakurei.app/internal/env"
)
func TestShimEntrypoint(t *testing.T) {
@@ -128,7 +129,7 @@ func TestShimEntrypoint(t *testing.T) {
Container: hst.Template().Container,
Mapuid: 1000,
Mapgid: 100,
- EnvPaths: &EnvPaths{TempDir: fhs.AbsTmp, RuntimePath: fhs.AbsRunUser.Append("1000")},
+ Paths: &env.Paths{TempDir: fhs.AbsTmp, RuntimePath: fhs.AbsRunUser.Append("1000")},
}, nil}, nil, nil),
call("swapVerbose", stub.ExpectArgs{true}, false, nil),
call("verbosef", stub.ExpectArgs{"process share directory at %q, runtime directory at %q", []any{m("/tmp/hakurei.10"), m("/run/user/1000/hakurei")}}, nil, nil),