Replace all usage of CopyOnWriteFs with OverlayFs

Fixes #9761
This commit is contained in:
Bjørn Erik Pedersen
2022-04-08 15:15:26 +02:00
parent 3117e58595
commit 30c2e54c25
13 changed files with 307 additions and 264 deletions

View File

@@ -27,6 +27,38 @@ import (
qt "github.com/frankban/quicktest"
)
func TestDataFromTheme(t *testing.T) {
t.Parallel()
files := `
-- config.toml --
[module]
[[module.imports]]
path = "mytheme"
-- data/a.toml --
d1 = "d1main"
d2 = "d2main"
-- themes/mytheme/data/a.toml --
d1 = "d1theme"
d2 = "d2theme"
d3 = "d3theme"
-- layouts/index.html --
d1: {{ site.Data.a.d1 }}|d2: {{ site.Data.a.d2 }}|d3: {{ site.Data.a.d3 }}
`
b := NewIntegrationTestBuilder(
IntegrationTestConfig{
T: t,
TxtarString: files,
},
).Build()
b.AssertFileContent("public/index.html", `
d1: d1main|d2: d2main|d3: d3theme
`)
}
func TestDataDir(t *testing.T) {
t.Parallel()
equivDataDirs := make([]dataDir, 3)