test: disable aux driver auto update when kvm or hyperkit

pull/21577/head
Medya Ghazizadeh 2025-09-15 14:23:51 -07:00
parent 39bc1861b4
commit 57252bace6
1 changed files with 5 additions and 3 deletions

View File

@ -57,7 +57,9 @@ const (
func TestMain(m *testing.M) {
flag.Parse()
setMaxParallelism()
if NeedsAuxDriver() {
*startArgs += " --auto-update-drivers=false"
}
start := time.Now()
code := m.Run()
fmt.Printf("Tests completed in %s (result code %d)\n", time.Since(start), code)
@ -170,8 +172,8 @@ func KicDriver() bool {
return DockerDriver() || PodmanDriver()
}
// Returns true if the driver needs an auxiliary driver (kvm, hyperkit,..)
func DriverHasAuxDriver() bool {
// NeedsAuxDriver Returns true if the driver needs an auxiliary driver (kvm, hyperkit,..)
func NeedsAuxDriver() bool {
return HyperVDriver() || KVMDriver()
}