From 82c349281f8fde30d5d997107f7f2365efd48d08 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 6 Oct 2025 10:08:39 +0200 Subject: pkg/kfuzztest: skip tests when cannot build Linux Otherwise we get the "cant-build-linux-on-openbsd" error. --- pkg/kfuzztest/description_generation_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/kfuzztest/description_generation_test.go b/pkg/kfuzztest/description_generation_test.go index b697dc0f7..d36999129 100644 --- a/pkg/kfuzztest/description_generation_test.go +++ b/pkg/kfuzztest/description_generation_test.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "path" + "runtime" "testing" "time" @@ -25,6 +26,9 @@ func TestBuildDescriptions(t *testing.T) { require.NoError(t, err) target := targets.Get(targets.Linux, targets.AMD64) + if runtime.GOOS != target.BuildOS { + t.Skip("we cannot build Linux on this target") + } if target.BrokenCompiler != "" { t.Skip("skipping the test due to broken cross-compiler:\n" + target.BrokenCompiler) } -- cgit mrf-deployment