feat: allow for setup.sh based user fixtures
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user