@@ -1055,12 +1055,10 @@ def test_compile_with_esp32_bundled_libraries(run_command, data_dir, copy_sketch
1055
1055
1056
1056
core_bundled_lib_path = Path (data_dir , "packages" , "esp32" , "hardware" , "esp32" , core_version , "libraries" , "SD" )
1057
1057
cli_installed_lib_path = Path (data_dir , "libraries" , "SD" )
1058
- expected_output = [
1059
- 'Multiple libraries were found for "SD.h"' ,
1060
- f" Used: { core_bundled_lib_path } " ,
1061
- f" Not used: { cli_installed_lib_path } " ,
1062
- ]
1063
- assert "\n " .join (expected_output ) in res .stdout
1058
+ assert 'Multiple libraries were found for "SD.h"' in res .stdout
1059
+ assert f" Used: { core_bundled_lib_path } " in res .stdout
1060
+ assert f" Not used: { cli_installed_lib_path } " in res .stdout
1061
+ assert f"Using library SD at version 1.0.5 in folder: { core_bundled_lib_path } " in res .stdout
1064
1062
1065
1063
1066
1064
def test_compile_with_esp8266_bundled_libraries (run_command , data_dir , copy_sketch ):
@@ -1096,9 +1094,7 @@ def test_compile_with_esp8266_bundled_libraries(run_command, data_dir, copy_sket
1096
1094
data_dir , "packages" , "esp8266" , "hardware" , "esp8266" , core_version , "libraries" , "SD"
1097
1095
)
1098
1096
cli_installed_lib_path = Path (data_dir , "libraries" , "SD" )
1099
- expected_output = [
1100
- 'Multiple libraries were found for "SD.h"' ,
1101
- f" Used: { core_bundled_lib_path } " ,
1102
- f" Not used: { cli_installed_lib_path } " ,
1103
- ]
1104
- assert "\n " .join (expected_output ) in res .stdout
1097
+ assert 'Multiple libraries were found for "SD.h"' in res .stdout
1098
+ assert f" Used: { core_bundled_lib_path } " in res .stdout
1099
+ assert f" Not used: { cli_installed_lib_path } " in res .stdout
1100
+ assert f"Using library SD at version 2.0.0 in folder: { core_bundled_lib_path } " in res .stdout
0 commit comments