@@ -79,7 +79,7 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
7979 // 03: error: used both importPath and importFile
8080 {"testdata/build_path_2/Blink.ino.hex" , "testdata/build_path_2" , nil , nil , "<nil>" , "" },
8181 // 04: only sketch without FQBN
82- {"" , "" , blonk , nil , sketch . GenBuildPath ( blonk .FullPath ).String (), "Blonk.ino" },
82+ {"" , "" , blonk , nil , blonk .DefaultBuildPath ( ).String (), "Blonk.ino" },
8383 // 05: use importFile to detect build.path and project_name, sketch is ignored.
8484 {"testdata/build_path_2/Blink.ino.hex" , "" , blonk , nil , "testdata/build_path_2" , "Blink.ino" },
8585 // 06: use importPath as build.path and Blink as project name, ignore the sketch Blonk
@@ -95,7 +95,7 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
9595 // 11: error: used both importPath and importFile
9696 {"testdata/build_path_2/Blink.ino.hex" , "testdata/build_path_2" , nil , fqbn , "<nil>" , "" },
9797 // 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" },
9999 // 13: use importFile to detect build.path and project_name, sketch+fqbn is ignored.
100100 {"testdata/build_path_2/Blink.ino.hex" , "" , blonk , fqbn , "testdata/build_path_2" , "Blink.ino" },
101101 // 14: use importPath as build.path and Blink as project name, ignore the sketch Blonk, ignore fqbn
0 commit comments