From b1417c551695cd8c384947e6263d6de29dd0756f Mon Sep 17 00:00:00 2001 From: Yage Hu Date: Mon, 20 Jul 2026 16:51:08 +0000 Subject: [PATCH] Exclude irrelevant tests on FreeBSD This commit excludes current Linux-specific test cases on FreeBSD builds. For example, the initial FreeBSD port does not support OS Login. --- .../{oslogin_test.go => oslogin_linux_test.go} | 0 google_guest_agent/run/run_test.go | 5 +++++ 2 files changed, 5 insertions(+) rename google_guest_agent/{oslogin_test.go => oslogin_linux_test.go} (100%) 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 }