Skip to content

Commit b1fe64c

Browse files
committed
Updated integration test
1 parent b8f51e8 commit b1fe64c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: test/test_compile_part_3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ def test_compile_sketch_case_mismatch_fails(run_command, data_dir):
124124
# * Compiling with sketch path
125125
res = run_command(["compile", "--clean", "-b", fqbn, sketch_path])
126126
assert res.failed
127-
assert "Error opening sketch: no valid sketch found" in res.stderr
127+
assert "Error opening sketch:" in res.stderr
128128
# * Compiling with sketch main file
129129
res = run_command(["compile", "--clean", "-b", fqbn, sketch_main_file])
130130
assert res.failed
131-
assert "Error opening sketch: no valid sketch found" in res.stderr
131+
assert "Error opening sketch:" in res.stderr
132132
# * Compiling in sketch path
133133
res = run_command(["compile", "--clean", "-b", fqbn], custom_working_dir=sketch_path)
134134
assert res.failed
135-
assert "Error opening sketch: no valid sketch found" in res.stderr
135+
assert "Error opening sketch:" in res.stderr
136136

137137

138138
def test_compile_with_only_compilation_database_flag(run_command, data_dir):

Diff for: test/test_upload.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def test_compile_and_upload_combo_sketch_with_mismatched_casing(run_command, dat
364364
# Try to compile
365365
res = run_command(["compile", "--clean", "-b", board.fqbn, "-u", "-p", board.address, sketch_path])
366366
assert res.failed
367-
assert "Error opening sketch: no valid sketch found in" in res.stderr
367+
assert "Error opening sketch:" in res.stderr
368368

369369

370370
def test_upload_sketch_with_mismatched_casing(run_command, data_dir, detected_boards, wait_for_board):
@@ -387,7 +387,7 @@ def test_upload_sketch_with_mismatched_casing(run_command, data_dir, detected_bo
387387
# searching for binaries since the sketch is not valid
388388
res = run_command(["upload", "-b", board.fqbn, "-p", board.address, sketch_path])
389389
assert res.failed
390-
assert "Error during Upload: no valid sketch found in" in res.stderr
390+
assert "Error during Upload:" in res.stderr
391391

392392

393393
def test_upload_to_port_with_board_autodetect(run_command, data_dir, detected_boards):

0 commit comments

Comments
 (0)