@@ -79,7 +79,7 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
79
79
// 03: error: used both importPath and importFile
80
80
{"testdata/build_path_2/Blink.ino.hex" , "testdata/build_path_2" , nil , nil , "<nil>" , "" },
81
81
// 04: only sketch without FQBN
82
- {"" , "" , blonk , nil , sketch . GenBuildPath ( blonk .FullPath ).String (), "Blonk.ino" },
82
+ {"" , "" , blonk , nil , blonk .DefaultBuildPath ( ).String (), "Blonk.ino" },
83
83
// 05: use importFile to detect build.path and project_name, sketch is ignored.
84
84
{"testdata/build_path_2/Blink.ino.hex" , "" , blonk , nil , "testdata/build_path_2" , "Blink.ino" },
85
85
// 06: use importPath as build.path and Blink as project name, ignore the sketch Blonk
@@ -95,7 +95,7 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
95
95
// 11: error: used both importPath and importFile
96
96
{"testdata/build_path_2/Blink.ino.hex" , "testdata/build_path_2" , nil , fqbn , "<nil>" , "" },
97
97
// 12: use sketch to determine project name and sketch+fqbn to determine build path
98
- {"" , "" , blonk , fqbn , sketch . GenBuildPath ( blonk .FullPath ).String (), "Blonk.ino" },
98
+ {"" , "" , blonk , fqbn , blonk .DefaultBuildPath ( ).String (), "Blonk.ino" },
99
99
// 13: use importFile to detect build.path and project_name, sketch+fqbn is ignored.
100
100
{"testdata/build_path_2/Blink.ino.hex" , "" , blonk , fqbn , "testdata/build_path_2" , "Blink.ino" },
101
101
// 14: use importPath as build.path and Blink as project name, ignore the sketch Blonk, ignore fqbn
0 commit comments