Skip to content

Commit 150c63c

Browse files
committed
test: Fix NeedsAuxDriver() to check for hyperkit
It checked for HyperV() instead. This seems wrong since auxdriver is used only for hyperkit and kvm.
1 parent b4f0f94 commit 150c63c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/integration/main_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,13 @@ func KicDriver() bool {
172172
return DockerDriver() || PodmanDriver()
173173
}
174174

175+
func HyperkitDriver() bool {
176+
return strings.Contains(*startArgs, "--driver=hyperkit") || strings.Contains(*startArgs, "--vm-driver=hyperkit")
177+
}
178+
175179
// NeedsAuxDriver Returns true if the driver needs an auxiliary driver (kvm, hyperkit,..)
176180
func NeedsAuxDriver() bool {
177-
return HyperVDriver() || KVMDriver()
181+
return HyperkitDriver() || KVMDriver()
178182
}
179183

180184
// VMDriver checks if the driver is a VM

0 commit comments

Comments
 (0)