feat: add mounts as an option in mire config + refactor default config generation

This commit is contained in:
2026-03-22 13:47:12 +00:00
parent f3b80ddf05
commit 517dc908bc
14 changed files with 189 additions and 125 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ func TestRunInit(t *testing.T) {
return struct{}{}
})
if got := testutil.ReadFile(t, filepath.Join(root, "mire.toml")); got != testutil.DefaultWrittenConfig("e2e") {
t.Fatalf("config = %q, want %q", got, testutil.DefaultWrittenConfig("e2e"))
if _, err := os.Stat(filepath.Join(root, "mire.toml")); err != nil {
t.Fatalf("Stat(%q) error = %v", filepath.Join(root, "mire.toml"), err)
}
info, err := os.Stat(filepath.Join(root, "e2e", "shell.sh"))
if err != nil {