Skip to content

Commit 46b2c4d

Browse files
authored
fix panic in TestSPQ on malformed ztest YAML (#6464)
1 parent 21aa0c0 commit 46b2c4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spq_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ func loadZTestInputsAndOutputs(ztestDirs map[string]struct{}) (map[string]string
7373
return nil, err
7474
}
7575
for _, b := range bundles {
76+
if b.Test == nil {
77+
continue
78+
}
7679
if i := b.Test.Input; i != nil && isValid(*i) {
7780
out[b.FileName+"/input"] = *i
7881
}

0 commit comments

Comments
 (0)