Skip to content

Commit d413337

Browse files
eaibmza-nogikh
authored andcommitted
pkg/kfuzztest: skip description generation test on non-amd64 arches
Skip the description generation test on non-x86 architectures if no cross-compiler could be found. Signed-off-by: Alexander Egorenkov <eaibmz@gmail.com>
1 parent 86341da commit d413337

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/kfuzztest/description_generation_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ func TestBuildDescriptions(t *testing.T) {
2525
require.NoError(t, err)
2626

2727
target := targets.Get(targets.Linux, targets.AMD64)
28+
if target.BrokenCompiler != "" {
29+
t.Skip("skipping the test due to broken cross-compiler:\n" + target.BrokenCompiler)
30+
}
2831
for _, tc := range testCases {
2932
t.Run(tc.dir, func(t *testing.T) {
3033
runTest(t, target, tc)

0 commit comments

Comments
 (0)