@@ -132,7 +132,7 @@ def test_compile_with_sketch_with_symlink_selfloop(run_command, data_dir):
132132 result = run_command ("compile -b {fqbn} {sketch_path}" .format (fqbn = fqbn , sketch_path = sketch_path ))
133133 # The assertion is a bit relaxed in this case because win behaves differently from macOs and linux
134134 # returning a different error detailed message
135- assert "Error during build: opening sketch" in result .stderr
135+ assert "Error during build: Can't open sketch: " in result .stderr
136136 assert not result .ok
137137
138138 sketch_name = "CompileIntegrationTestSymlinkDirLoop"
@@ -154,7 +154,7 @@ def test_compile_with_sketch_with_symlink_selfloop(run_command, data_dir):
154154 result = run_command ("compile -b {fqbn} {sketch_path}" .format (fqbn = fqbn , sketch_path = sketch_path ))
155155 # The assertion is a bit relaxed in this case because win behaves differently from macOs and linux
156156 # returning a different error detailed message
157- assert "Error during build: opening sketch" in result .stderr
157+ assert "Error during build: Can't open sketch: " in result .stderr
158158 assert not result .ok
159159
160160
@@ -685,17 +685,17 @@ def test_compile_sketch_with_multiple_main_files(run_command, data_dir):
685685 # Build sketch from folder
686686 res = run_command (f"compile --clean -b { fqbn } { sketch_path } " )
687687 assert res .failed
688- assert "Error during build: opening sketch: multiple main sketch files found" in res .stderr
688+ assert "Error during build: Can't open sketch: multiple main sketch files found" in res .stderr
689689
690690 # Build sketch from .ino file
691691 res = run_command (f"compile --clean -b { fqbn } { sketch_ino_file } " )
692692 assert res .failed
693- assert "Error during build: opening sketch: multiple main sketch files found" in res .stderr
693+ assert "Error during build: Can't open sketch: multiple main sketch files found" in res .stderr
694694
695695 # Build sketch from .pde file
696696 res = run_command (f"compile --clean -b { fqbn } { sketch_pde_file } " )
697697 assert res .failed
698- assert "Error during build: opening sketch: multiple main sketch files found" in res .stderr
698+ assert "Error during build: Can't open sketch: multiple main sketch files found" in res .stderr
699699
700700
701701def test_compile_sketch_case_mismatch_fails (run_command , data_dir ):
@@ -718,15 +718,15 @@ def test_compile_sketch_case_mismatch_fails(run_command, data_dir):
718718 # * Compiling with sketch path
719719 res = run_command (f"compile --clean -b { fqbn } { sketch_path } " )
720720 assert res .failed
721- assert "Error during build: opening sketch: no valid sketch found" in res .stderr
721+ assert "Error during build: Can't open sketch: no valid sketch found" in res .stderr
722722 # * Compiling with sketch main file
723723 res = run_command (f"compile --clean -b { fqbn } { sketch_main_file } " )
724724 assert res .failed
725- assert "Error during build: opening sketch: no valid sketch found" in res .stderr
725+ assert "Error during build: Can't open sketch: no valid sketch found" in res .stderr
726726 # * Compiling in sketch path
727727 res = run_command (f"compile --clean -b { fqbn } " , custom_working_dir = sketch_path )
728728 assert res .failed
729- assert "Error during build: opening sketch: no valid sketch found" in res .stderr
729+ assert "Error during build: Can't open sketch: no valid sketch found" in res .stderr
730730
731731
732732def test_compile_with_only_compilation_database_flag (run_command , data_dir ):
0 commit comments