From b1fe64ccf36504afe2d609d305749f38a04c1c88 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 14 Jul 2022 15:00:40 +0200 Subject: [PATCH] Updated integration test --- test/test_compile_part_3.py | 6 +++--- test/test_upload.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_compile_part_3.py b/test/test_compile_part_3.py index 69b50864542..bf54be9c908 100644 --- a/test/test_compile_part_3.py +++ b/test/test_compile_part_3.py @@ -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): diff --git a/test/test_upload.py b/test/test_upload.py index a6eed7f249d..5e95eb67102 100644 --- a/test/test_upload.py +++ b/test/test_upload.py @@ -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): @@ -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):