diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-10-06 10:08:39 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-10-06 08:29:04 +0000 |
| commit | 82c349281f8fde30d5d997107f7f2365efd48d08 (patch) | |
| tree | 38301dd8eeeef98aeaefaf20fa615ddd2a4f20d2 | |
| parent | c0478890a2483e774aa712cce11dfa0799f92aa5 (diff) | |
pkg/kfuzztest: skip tests when cannot build Linux
Otherwise we get the "cant-build-linux-on-openbsd" error.
| -rw-r--r-- | pkg/kfuzztest/description_generation_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) } |
