From 9832ed61ae41048a549b0194edc9dcade0851e76 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Mon, 20 Oct 2025 17:20:30 +0200 Subject: pkg/csource: fix check for sysTarget.BrokenCompiler() Make sure arches with the broken compiler are correctly skipped. --- pkg/csource/csource_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg') diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index f4cfe40a4..15dad5f34 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -43,11 +43,11 @@ func TestGenerate(t *testing.T) { continue } t.Run(target.OS+"/"+target.Arch, func(t *testing.T) { + if err := sysTarget.BrokenCompiler; err != "" { + t.Skipf("target compiler is broken: %v", err) + } full := !checked[target.OS] if full || !testing.Short() { - if err := sysTarget.BrokenCompiler; err != "" { - t.Skipf("target compiler is broken: %v", err) - } checked[target.OS] = true t.Parallel() testTarget(t, target, full) -- cgit mrf-deployment