@@ -226,7 +226,7 @@ func compileWithSketchWithSymlinkSelfloop(t *testing.T, env *integrationtest.Env
226
226
_ , stderr , err := cli .Run ("compile" , "-b" , fqbn , sketchPath .String ())
227
227
// The assertion is a bit relaxed in this case because win behaves differently from macOs and linux
228
228
// returning a different error detailed message
229
- require .Contains (t , string (stderr ), "Error opening sketch:" )
229
+ require .Contains (t , string (stderr ), "Can't open sketch:" )
230
230
require .Error (t , err )
231
231
}
232
232
{
@@ -252,7 +252,7 @@ func compileWithSketchWithSymlinkSelfloop(t *testing.T, env *integrationtest.Env
252
252
_ , stderr , err := cli .Run ("compile" , "-b" , fqbn , sketchPath .String ())
253
253
// The assertion is a bit relaxed in this case because win behaves differently from macOs and linux
254
254
// returning a different error detailed message
255
- require .Contains (t , string (stderr ), "Error opening sketch:" )
255
+ require .Contains (t , string (stderr ), "Can't open sketch:" )
256
256
require .Error (t , err )
257
257
}
258
258
}
@@ -620,17 +620,17 @@ func compileWithMultipleMainFiles(t *testing.T, env *integrationtest.Environment
620
620
// Build sketch from folder
621
621
_ , stderr , err := cli .Run ("compile" , "--clean" , "-b" , fqbn , sketchPath .String ())
622
622
require .Error (t , err )
623
- require .Contains (t , string (stderr ), "Error opening sketch: multiple main sketch files found" )
623
+ require .Contains (t , string (stderr ), "Can't open sketch: multiple main sketch files found" )
624
624
625
625
// Build sketch from .ino file
626
626
_ , stderr , err = cli .Run ("compile" , "--clean" , "-b" , fqbn , sketchFileIno .String ())
627
627
require .Error (t , err )
628
- require .Contains (t , string (stderr ), "Error opening sketch: multiple main sketch files found" )
628
+ require .Contains (t , string (stderr ), "Can't open sketch: multiple main sketch files found" )
629
629
630
630
// Build sketch from .pde file
631
631
_ , stderr , err = cli .Run ("compile" , "--clean" , "-b" , fqbn , sketchFilePde .String ())
632
632
require .Error (t , err )
633
- require .Contains (t , string (stderr ), "Error opening sketch: multiple main sketch files found" )
633
+ require .Contains (t , string (stderr ), "Can't open sketch: multiple main sketch files found" )
634
634
}
635
635
636
636
func compileCaseMismatchFails (t * testing.T , env * integrationtest.Environment , cli * integrationtest.ArduinoCLI ) {
@@ -652,17 +652,17 @@ func compileCaseMismatchFails(t *testing.T, env *integrationtest.Environment, cl
652
652
// * Compiling with sketch path
653
653
_ , stderr , err := cli .Run ("compile" , "--clean" , "-b" , fqbn , sketchPath .String ())
654
654
require .Error (t , err )
655
- require .Contains (t , string (stderr ), "Error opening sketch:" )
655
+ require .Contains (t , string (stderr ), "Can't open sketch:" )
656
656
// * Compiling with sketch main file
657
657
_ , stderr , err = cli .Run ("compile" , "--clean" , "-b" , fqbn , sketchMainFile .String ())
658
658
require .Error (t , err )
659
- require .Contains (t , string (stderr ), "Error opening sketch:" )
659
+ require .Contains (t , string (stderr ), "Can't open sketch:" )
660
660
// * Compiling in sketch path
661
661
cli .SetWorkingDir (sketchPath )
662
662
defer cli .SetWorkingDir (env .RootDir ())
663
663
_ , stderr , err = cli .Run ("compile" , "--clean" , "-b" , fqbn )
664
664
require .Error (t , err )
665
- require .Contains (t , string (stderr ), "Error opening sketch:" )
665
+ require .Contains (t , string (stderr ), "Can't open sketch:" )
666
666
}
667
667
668
668
func compileOnlyCompilationDatabaseFlag (t * testing.T , env * integrationtest.Environment , cli * integrationtest.ArduinoCLI ) {
0 commit comments