@@ -132,7 +132,7 @@ def test_compile_with_sketch_with_symlink_selfloop(run_command, data_dir):
132
132
result = run_command ("compile -b {fqbn} {sketch_path}" .format (fqbn = fqbn , sketch_path = sketch_path ))
133
133
# The assertion is a bit relaxed in this case because win behaves differently from macOs and linux
134
134
# 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
136
136
assert not result .ok
137
137
138
138
sketch_name = "CompileIntegrationTestSymlinkDirLoop"
@@ -154,7 +154,7 @@ def test_compile_with_sketch_with_symlink_selfloop(run_command, data_dir):
154
154
result = run_command ("compile -b {fqbn} {sketch_path}" .format (fqbn = fqbn , sketch_path = sketch_path ))
155
155
# The assertion is a bit relaxed in this case because win behaves differently from macOs and linux
156
156
# 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
158
158
assert not result .ok
159
159
160
160
@@ -685,17 +685,17 @@ def test_compile_sketch_with_multiple_main_files(run_command, data_dir):
685
685
# Build sketch from folder
686
686
res = run_command (f"compile --clean -b { fqbn } { sketch_path } " )
687
687
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
689
689
690
690
# Build sketch from .ino file
691
691
res = run_command (f"compile --clean -b { fqbn } { sketch_ino_file } " )
692
692
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
694
694
695
695
# Build sketch from .pde file
696
696
res = run_command (f"compile --clean -b { fqbn } { sketch_pde_file } " )
697
697
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
699
699
700
700
701
701
def 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):
718
718
# * Compiling with sketch path
719
719
res = run_command (f"compile --clean -b { fqbn } { sketch_path } " )
720
720
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
722
722
# * Compiling with sketch main file
723
723
res = run_command (f"compile --clean -b { fqbn } { sketch_main_file } " )
724
724
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
726
726
# * Compiling in sketch path
727
727
res = run_command (f"compile --clean -b { fqbn } " , custom_working_dir = sketch_path )
728
728
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
730
730
731
731
732
732
def test_compile_with_only_compilation_database_flag (run_command , data_dir ):
0 commit comments