File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,22 @@ func TestGetCompatibleWith(t *testing.T) {
1212 require .NoError (t , err )
1313 require .NoError (t , root .ToAbs ())
1414 testrunner := func (board string ) {
15- res := GetCompatibleWith (board , root .String ())
16- require .NotNil (t , res )
17- hasLoader := false
18- for _ , e := range res {
19- for _ , i := range e {
20- if i .IsLoader {
21- require .False (t , hasLoader , "loader must be unique" )
22- hasLoader = true
23- require .NotEmpty (t , i .Name )
24- require .NotEmpty (t , i .Path )
15+ t .Run (board , func (t * testing.T ) {
16+ res := GetCompatibleWith (board , root .String ())
17+ require .NotNil (t , res )
18+ hasLoader := false
19+ for _ , e := range res {
20+ for _ , i := range e {
21+ if i .IsLoader {
22+ require .False (t , hasLoader , "loader must be unique" )
23+ hasLoader = true
24+ require .NotEmpty (t , i .Name )
25+ require .NotEmpty (t , i .Path )
26+ }
2527 }
2628 }
27- }
28- require . True ( t , hasLoader , "loader must be present" )
29+ require . True ( t , hasLoader , "loader must be present" )
30+ } )
2931 }
3032
3133 testrunner ("mkrwifi1010" )
You can’t perform that action at this time.
0 commit comments