@@ -44,7 +44,6 @@ func TestAddBuildBoardPropertyIfMissing(t *testing.T) {
44
44
commands := []types.Command {
45
45
& builder.HardwareLoader {},
46
46
& builder.TargetBoardResolver {},
47
- & builder.AddBuildBoardPropertyIfMissing {},
48
47
}
49
48
50
49
for _ , command := range commands {
@@ -60,8 +59,9 @@ func TestAddBuildBoardPropertyIfMissing(t *testing.T) {
60
59
require .Equal (t , "avr" , targetPlatform .Platform .Architecture )
61
60
targetBoard := ctx .TargetBoard
62
61
require .Equal (t , "mymega" , targetBoard .BoardID )
63
- require .Equal (t , "atmega2560" , targetBoard .Properties .Get ("build.mcu" ))
64
- require .Equal (t , "AVR_MYMEGA2560" , targetBoard .Properties .Get ("build.board" ))
62
+ targetBoardBuildProperties := ctx .TargetBoardBuildProperties
63
+ require .Equal (t , "atmega2560" , targetBoardBuildProperties .Get ("build.mcu" ))
64
+ require .Equal (t , "AVR_MYMEGA2560" , targetBoardBuildProperties .Get ("build.board" ))
65
65
}
66
66
67
67
func TestAddBuildBoardPropertyIfMissingNotMissing (t * testing.T ) {
@@ -76,7 +76,6 @@ func TestAddBuildBoardPropertyIfMissingNotMissing(t *testing.T) {
76
76
commands := []types.Command {
77
77
& builder.HardwareLoader {},
78
78
& builder.TargetBoardResolver {},
79
- & builder.AddBuildBoardPropertyIfMissing {},
80
79
}
81
80
82
81
for _ , command := range commands {
@@ -90,6 +89,7 @@ func TestAddBuildBoardPropertyIfMissingNotMissing(t *testing.T) {
90
89
require .Equal (t , "avr" , targetPlatform .Platform .Architecture )
91
90
targetBoard := ctx .TargetBoard
92
91
require .Equal (t , "mymega" , targetBoard .BoardID )
93
- require .Equal (t , "atmega1280" , targetBoard .Properties .Get ("build.mcu" ))
94
- require .Equal (t , "AVR_MYMEGA" , targetBoard .Properties .Get ("build.board" ))
92
+ targetBoardBuildProperties := ctx .TargetBoardBuildProperties
93
+ require .Equal (t , "atmega1280" , targetBoardBuildProperties .Get ("build.mcu" ))
94
+ require .Equal (t , "AVR_MYMEGA" , targetBoardBuildProperties .Get ("build.board" ))
95
95
}
0 commit comments