Index: suite_leahi/tst_blood_set_auto/test.py =================================================================== diff -u -r625ff1b3c488dd364588e4ea6143dc8e63c2bb74 -r9f922977ecbe83f170f8d6be296539d8242a2fc8 --- suite_leahi/tst_blood_set_auto/test.py (.../test.py) (revision 625ff1b3c488dd364588e4ea6143dc8e63c2bb74) +++ suite_leahi/tst_blood_set_auto/test.py (.../test.py) (revision 9f922977ecbe83f170f8d6be296539d8242a2fc8) @@ -49,24 +49,24 @@ def main(): utils.tstStart(__file__) - test.startSection("Blood Set Auto Load and Eject") - - # handle bloodSetAutoLoad sent messages from UI - if can_interface is not None: - channel_id = CAN.DenaliChannels.ui_to_td_ch_id - message_id = MsgIds.MSG_ID_UI_ADJUST_DISPOSABLES_CONFIRM_REQUEST.value - can_interface.register_receiving_publication_function( - channel_id, message_id, handle_blood_set_auto_load_request - ) + if can_interface is None: + test.log("CAN Interface is not available. Stopping tests.") + return - # handle bloodSetAutoEject sent messages from UI - if can_interface is not None: - channel_id = CAN.DenaliChannels.ui_to_td_ch_id - message_id = MsgIds.MSG_ID_UI_ADJUST_DISPOSABLES_REMOVAL_CONFIRM_REQUEST.value - can_interface.register_receiving_publication_function( - channel_id, message_id, handle_blood_set_auto_eject_request - ) - + channel_id = CAN.DenaliChannels.ui_to_td_ch_id + + # Register Blood Set Auto Load Request + message_id = MsgIds.MSG_ID_UI_ADJUST_DISPOSABLES_CONFIRM_REQUEST.value + can_interface.register_receiving_publication_function( + channel_id, message_id, handle_blood_set_auto_load_request + ) + # Register Blood Set Auto Eject Request + message_id = MsgIds.MSG_ID_UI_ADJUST_DISPOSABLES_REMOVAL_CONFIRM_REQUEST.value + can_interface.register_receiving_publication_function( + channel_id, message_id, handle_blood_set_auto_eject_request + ) + + test.startSection("Blood Set Auto Load and Eject") application_init.reset_system_setting("AdvancedMode") startApplication(utility.aut("-q")) td_simulator.td_operation_mode(TDOpModes.MODE_STAN.value)