diff --git a/test/integration/driver_install_or_update_test.go b/test/integration/driver_install_or_update_test.go index cff536642c..3e85d5d156 100644 --- a/test/integration/driver_install_or_update_test.go +++ b/test/integration/driver_install_or_update_test.go @@ -20,6 +20,7 @@ import ( "fmt" "io/ioutil" "os" + "os/exec" "path/filepath" "runtime" "testing" @@ -147,7 +148,11 @@ func TestHyperKitDriverInstallOrUpdate(t *testing.T) { t.Fatalf("Expected new semver. test: %v, got: %v", tc.name, err) } - err = driver.InstallOrUpdate("hyperkit", dir, newerVersion, true, true) + if err := exec.Command("sudo", "-n", "ls").Run(); err != nil { + t.Skipf("password required to execute 'ls', skipping remaining test: %v", err) + } + + err = driver.InstallOrUpdate("hyperkit", dir, newerVersion, false, true) if err != nil { t.Fatalf("Failed to update driver to %v. test: %s, got: %v", newerVersion, tc.name, err) }