diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-19 23:41:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-20 00:16:35 +0900 |
| commit | cb618093d5a2156e6c5a03eaf8ca7d370bf33740 (patch) | |
| tree | 7bf8488b7dc0c81f75c6bd96f2da5b1dca9241c2 /internal/outcome/spaccount_test.go | |
| parent | b0b2471c0cd783c670ed7531d5512415259f551d (diff) | |
hst: optionally disable file placement
This works around stubborn package managers.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/spaccount_test.go')
| -rw-r--r-- | internal/outcome/spaccount_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/outcome/spaccount_test.go b/internal/outcome/spaccount_test.go index f94e4591..fb20d8df 100644 --- a/internal/outcome/spaccount_test.go +++ b/internal/outcome/spaccount_test.go @@ -38,6 +38,7 @@ func TestSpAccountOp(t *testing.T) { {"success fallback username", func(bool, bool) outcomeOp { return spAccountOp{} }, func() *hst.Config { c := hst.Template() c.Container.Username = "" + c.Container.Flags = hst.FMapRealUID return c }, nil, []stub.Call{ // this op performs basic validation and does not make calls during toSystem @@ -60,9 +61,7 @@ func TestSpAccountOp(t *testing.T) { // this op configures the container state and does not make calls during toContainer }, &container.Params{ Dir: config.Container.Home, - Ops: new(container.Ops). - Place(m("/etc/passwd"), []byte("chronos:x:1000:100:Hakurei:/data/data/org.chromium.Chromium:/run/current-system/sw/bin/zsh\n")). - Place(m("/etc/group"), []byte("hakurei:x:100:\n")), + Ops: new(container.Ops), }, paramsWantEnv(config, map[string]string{ "HOME": config.Container.Home.String(), "USER": config.Container.Username, |
