feat: allow for setup.sh based user fixtures

This commit is contained in:
2026-03-21 11:20:29 +00:00
parent cf9330e483
commit d72f727322
10 changed files with 222 additions and 45 deletions
+12
View File
@@ -4,6 +4,7 @@ import (
"bytes"
"os"
"path/filepath"
"strings"
"testing"
"miro/internal/testutil"
@@ -78,3 +79,14 @@ func containsEnvEntry(env []string, want string) bool {
return false
}
func containsEnvKey(env []string, key string) bool {
prefix := key + "="
for _, entry := range env {
if strings.HasPrefix(entry, prefix) {
return true
}
}
return false
}