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