@@ -69,8 +69,8 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
6969 {"" , "" , blonk , nil , "<nil>" , "" , true },
7070 // 05: use importFile to detect build.path and project_name, sketch is ignored.
7171 {"testdata/build_path_2/Blink.ino.hex" , "" , blonk , nil , "testdata/build_path_2" , "Blink.ino" , false },
72- // 06: use importPath as build.path and Blonk as project name (forced by the sketch)
73- {"" , "testdata/build_path_2" , blonk , nil , "testdata/build_path_2" , "Blonk .ino" , false },
72+ // 06: use importPath as build.path and Blink as project name, ignore the sketch Blonk
73+ {"" , "testdata/build_path_2" , blonk , nil , "testdata/build_path_2" , "Blink .ino" , false },
7474 // 07: error: used both importPath and importFile
7575 {"testdata/build_path_2/Blink.ino.hex" , "testdata/build_path_2" , blonk , nil , "<nil>" , "" , true },
7676
@@ -86,8 +86,8 @@ func TestDetermineBuildPathAndSketchName(t *testing.T) {
8686 {"" , "" , blonk , fqbn , "testdata/Blonk/build/arduino.samd.mkr1000" , "Blonk.ino" , false },
8787 // 13: use importFile to detect build.path and project_name, sketch+fqbn is ignored.
8888 {"testdata/build_path_2/Blink.ino.hex" , "" , blonk , fqbn , "testdata/build_path_2" , "Blink.ino" , false },
89- // 14: use importPath as build.path and Blonk as project name (forced by the sketch), fqbn ignored
90- {"" , "testdata/build_path_2" , blonk , fqbn , "testdata/build_path_2" , "Blonk .ino" , false },
89+ // 14: use importPath as build.path and Blink as project name, ignore the sketch Blonk, ignore fqbn
90+ {"" , "testdata/build_path_2" , blonk , fqbn , "testdata/build_path_2" , "Blink .ino" , false },
9191 // 15: error: used both importPath and importFile
9292 {"testdata/build_path_2/Blink.ino.hex" , "testdata/build_path_2" , blonk , fqbn , "<nil>" , "" , true },
9393 }
0 commit comments