From 347325dacf796bc28298fe5fcc73ee84749c023f Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Wed, 28 Oct 2015 10:28:53 -0700 Subject: [PATCH] Use same binary as Fingerprint in the QemuCompatible function --- client/testutil/driver_compatible.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/testutil/driver_compatible.go b/client/testutil/driver_compatible.go index a9d1cdc42..d73d62f33 100644 --- a/client/testutil/driver_compatible.go +++ b/client/testutil/driver_compatible.go @@ -15,7 +15,11 @@ func ExecCompatible(t *testing.T) { func QemuCompatible(t *testing.T) { // Check if qemu exists - _, err := exec.Command("qemu-system-x86_64", "-version").CombinedOutput() + bin := "qemu-system-x86_64" + if runtime.GOOS == "windows" { + bin = "qemu-img" + } + _, err := exec.Command(bin, "--version").CombinedOutput() if err != nil { t.Skip("Must have Qemu installed for Qemu specific tests to run") }