diff --git a/google_guest_agent/oslogin_test.go b/google_guest_agent/oslogin_linux_test.go similarity index 100% rename from google_guest_agent/oslogin_test.go rename to google_guest_agent/oslogin_linux_test.go diff --git a/google_guest_agent/run/run_test.go b/google_guest_agent/run/run_test.go index 70f3c907..e5a0d640 100644 --- a/google_guest_agent/run/run_test.go +++ b/google_guest_agent/run/run_test.go @@ -19,6 +19,7 @@ import ( "fmt" "os" "path" + "runtime" "strings" "testing" "time" @@ -208,6 +209,10 @@ func TestOutputTimeoutFail(t *testing.T) { } func TestCommandSpecSuccess(t *testing.T) { + if runtime.GOOS != "linux" { + t.Skip("Skipping test: requires Linux") + } + type commandData struct { Data string }