Skip to content

Commit

Permalink
Updated integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jul 14, 2022
1 parent b8f51e8 commit b1fe64c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/test_compile_part_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ def test_compile_sketch_case_mismatch_fails(run_command, data_dir):
# * Compiling with sketch path
res = run_command(["compile", "--clean", "-b", fqbn, sketch_path])
assert res.failed
assert "Error opening sketch: no valid sketch found" in res.stderr
assert "Error opening sketch:" in res.stderr
# * Compiling with sketch main file
res = run_command(["compile", "--clean", "-b", fqbn, sketch_main_file])
assert res.failed
assert "Error opening sketch: no valid sketch found" in res.stderr
assert "Error opening sketch:" in res.stderr
# * Compiling in sketch path
res = run_command(["compile", "--clean", "-b", fqbn], custom_working_dir=sketch_path)
assert res.failed
assert "Error opening sketch: no valid sketch found" in res.stderr
assert "Error opening sketch:" in res.stderr


def test_compile_with_only_compilation_database_flag(run_command, data_dir):
Expand Down
4 changes: 2 additions & 2 deletions test/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def test_compile_and_upload_combo_sketch_with_mismatched_casing(run_command, dat
# Try to compile
res = run_command(["compile", "--clean", "-b", board.fqbn, "-u", "-p", board.address, sketch_path])
assert res.failed
assert "Error opening sketch: no valid sketch found in" in res.stderr
assert "Error opening sketch:" in res.stderr


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


def test_upload_to_port_with_board_autodetect(run_command, data_dir, detected_boards):
Expand Down

0 comments on commit b1fe64c

Please sign in to comment.