Use same binary as Fingerprint in the QemuCompatible function

This commit is contained in:
Alex Dadgar
2015-10-28 10:28:53 -07:00
parent 3e243edd21
commit 347325dacf

View File

@@ -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")
}