aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/app/app_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-17 02:30:10 +0900
committerOphestra <cat@gensokyo.uk>2026-09-17 02:30:10 +0900
commit4078289cdadb4def6ae28428ce8bf3c7907f66f1 (patch)
treefd7c9dd9192cc4bb9aeb94c1efb7411687535231 /cmd/app/app_test.go
parent3fbdf138bb7ce07319d2c9e3d89b3a3892e139d2 (diff)
cmd/app: alternative merged template layout
This implements an optional, alternative template layout to accommodate ZFS and equivalent setups where each template occupies a different filesystem. In such a setup, the default, separate workdir is unusable as overlayfs requires the workdir to reside on the same filesystem as the writable upperdir. The "merge" build tag enables this alternative behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/app/app_test.go')
-rw-r--r--cmd/app/app_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/app/app_test.go b/cmd/app/app_test.go
index 1aab4759..90c0068e 100644
--- a/cmd/app/app_test.go
+++ b/cmd/app/app_test.go
@@ -13,7 +13,7 @@ import (
func TestParse(t *testing.T) {
t.Parallel()
- base := fhs.AbsProc.Append("nonexistent")
+ b := (*base)(fhs.AbsProc.Append("nonexistent"))
testCases := []struct {
name string
data string
@@ -74,13 +74,13 @@ talk com.canonical.Unity
{FilesystemConfig: &hst.FSOverlay{
Target: fhs.AbsRoot,
Lower: []*check.Absolute{
- base.Append("initial"),
+ b.initial(),
},
- Upper: base.Append("template", "nonfree"),
+ Upper: b.template("nonfree"),
}},
{FilesystemConfig: &hst.FSBind{
Target: hst.AbsPrivateTmp.Append("home"),
- Source: base.Append("state", "com.discordapp.Discord"),
+ Source: b.state("com.discordapp.Discord"),
Write: true,
Ensure: true,
}},
@@ -128,7 +128,7 @@ talk com.canonical.Unity
got, err := parse(
tc.name,
- base,
+ b,
strings.NewReader(tc.data),
nil,
)