Skip to content

Commit 57252ba

Browse files
committed
test: disable aux driver auto update when kvm or hyperkit
1 parent 39bc186 commit 57252ba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/integration/main_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ const (
5757
func TestMain(m *testing.M) {
5858
flag.Parse()
5959
setMaxParallelism()
60-
60+
if NeedsAuxDriver() {
61+
*startArgs += " --auto-update-drivers=false"
62+
}
6163
start := time.Now()
6264
code := m.Run()
6365
fmt.Printf("Tests completed in %s (result code %d)\n", time.Since(start), code)
@@ -170,8 +172,8 @@ func KicDriver() bool {
170172
return DockerDriver() || PodmanDriver()
171173
}
172174

173-
// Returns true if the driver needs an auxiliary driver (kvm, hyperkit,..)
174-
func DriverHasAuxDriver() bool {
175+
// NeedsAuxDriver Returns true if the driver needs an auxiliary driver (kvm, hyperkit,..)
176+
func NeedsAuxDriver() bool {
175177
return HyperVDriver() || KVMDriver()
176178
}
177179

0 commit comments

Comments
 (0)