@@ -310,7 +310,7 @@ def example_test_data():
310310 "expectation" : "\\ [INFO\\ ] Connecting to operator.{0,}OK!"
311311 },
312312 {
313- "expectation" : "\\ [INFO\\ ] Connecting to AWS .{0,}OK!"
313+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker .{0,}OK!"
314314 },
315315 {
316316 "expectation" : "\\ [INFO\\ ] Published message"
@@ -345,7 +345,7 @@ def example_test_data():
345345 "expectation" : "\\ [INFO\\ ] Connecting to operator.{0,}OK!"
346346 },
347347 {
348- "expectation" : "\\ [INFO\\ ] Connecting to Azure IoT Hub .{0,}OK!"
348+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker .{0,}OK!"
349349 },
350350 {
351351 "expectation" : "\\ [INFO\\ ] Published message"
@@ -371,13 +371,13 @@ def example_test_data():
371371 ],
372372 "mqtt_custom_broker" : [
373373 {
374- "expectation" : "\\ [INFO\\ ] Starting MQTT with custom broker example (polling mode) "
374+ "expectation" : "\\ [INFO\\ ] Starting MQTT with custom broker"
375375 },
376376 {
377377 "expectation" : "\\ [INFO\\ ] Connecting to operator.{0,}OK!"
378378 },
379379 {
380- "expectation" : "\\ [INFO\\ ] Connecting to broker.{0,}OK!"
380+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker.{0,}OK!"
381381 },
382382 {
383383 "expectation" : "\\ [INFO\\ ] Published message: Hello world: (\\ d{1,})"
@@ -410,7 +410,7 @@ def example_test_data():
410410 },
411411 {
412412 "timeout" : 90 ,
413- "expectation" : "\\ [INFO\\ ] Connecting to broker.{0,}OK!"
413+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker.{0,}OK!"
414414 },
415415 {
416416 "expectation" : "\\ [INFO\\ ] Published message: \\ d{1,}"
@@ -427,7 +427,7 @@ def example_test_data():
427427 },
428428 {
429429 "timeout" : 90 ,
430- "expectation" : "\\ [INFO\\ ] Connecting to broker.{0,}OK!"
430+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker.{0,}OK!"
431431 },
432432 {
433433 "expectation" : "\\ [INFO\\ ] Published message: \\ d{1,}"
@@ -451,7 +451,7 @@ def example_test_data():
451451 "expectation" : "\\ [INFO\\ ] Connecting to operator.{0,}OK!"
452452 },
453453 {
454- "expectation" : "\\ [INFO\\ ] Connecting to broker.{0,}OK!"
454+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker.{0,}OK!"
455455 },
456456 {
457457 "expectation" : "\\ [INFO\\ ] Subscribed to mchp_topic"
@@ -495,7 +495,7 @@ def example_test_data():
495495 "expectation" : "\\ [INFO\\ ] Not connected to broker. Attempting to connect!"
496496 },
497497 {
498- "expectation" : "\\ [INFO\\ ] Connecting to broker.{0,}OK!"
498+ "expectation" : "\\ [INFO\\ ] Connecting to MQTT broker.{0,}OK!"
499499 },
500500 {
501501 "repeat" : 5 ,
@@ -671,9 +671,9 @@ def program(request, backend):
671671 os .mkdir (build_directory )
672672
673673 compilation_return_code = subprocess .run (
674- ["arduino-cli" , "compile" , f"{ sketch_path } " , "-b" , f"{ BOARD_CONFIG } " , "--output-dir " , f"{ build_directory } " ], shell = True ).returncode
674+ ["arduino-cli" , "compile" , f"{ sketch_path } " , "-b" , f"{ BOARD_CONFIG } " , "--build-path " , f"{ build_directory } " ], shell = True ).returncode
675675
676- assert compilation_return_code == 0 , f"{ example_name } failed to compile"
676+ assert compilation_return_code == 0 , f"{ example_name } failed to compile, return code: { compilation_return_code } "
677677
678678 hex_file = build_directory / f"{ os .path .basename (sketch_path )} .hex"
679679
@@ -783,19 +783,23 @@ def test_https_with_header(request, backend, session_config, example_test_data):
783783 run_test (request , backend , session_config , example_test_data )
784784
785785
786- def test_mqtt_low_power (request , backend , session_config , example_test_data ):
786+ def test_mqtt_aws (request , backend , session_config , example_test_data ):
787787 run_test (request , backend , session_config , example_test_data )
788788
789789
790- def test_mqtt_password_authentication (request , backend , session_config , example_test_data ):
790+ def test_mqtt_azure (request , backend , session_config , example_test_data ):
791791 run_test (request , backend , session_config , example_test_data )
792792
793793
794- def test_mqtt_polling (request , backend , session_config , example_test_data ):
794+ def test_mqtt_custom_broker (request , backend , session_config , example_test_data ):
795795 run_test (request , backend , session_config , example_test_data )
796796
797797
798- def test_mqtt_polling_aws (request , backend , session_config , example_test_data ):
798+ def test_mqtt_low_power (request , backend , session_config , example_test_data ):
799+ run_test (request , backend , session_config , example_test_data )
800+
801+
802+ def test_mqtt_password_authentication (request , backend , session_config , example_test_data ):
799803 run_test (request , backend , session_config , example_test_data )
800804
801805
0 commit comments