Index: tst_unhandled_message_log/test.py =================================================================== diff -u -r8ab173b73aee8c664388a5ad87ea39fedcc43b11 -r202db82fbc4b2e68aa017afd7996245610ccdb59 --- tst_unhandled_message_log/test.py (.../test.py) (revision 8ab173b73aee8c664388a5ad87ea39fedcc43b11) +++ tst_unhandled_message_log/test.py (.../test.py) (revision 202db82fbc4b2e68aa017afd7996245610ccdb59) @@ -29,7 +29,11 @@ UNHANDLED_MESSAGE_1 = "\n[0x2A00]\nHD_custom_data_verification_1\nU32=unsigned_32bit\nU32=argument_2\n" UNHANDLED_MESSAGE_2 = "\n[0x8C00]\nHD_custom_data_verification_2\nF32=float_argument\nS16=argument_2\n" UNHANDLED_MESSAGE_3 = "\n[0x9F00]\nHD_custom_data_verification_3\nU16=unsigned_16bit\nS32=argument_2\n" -PREDEFINED_MESSAGE = "\n[0x3A00]\nHD_Valves_Data\nU32=ValveID\nU32=PosID\nS16=Position\nS16=Next Position\nF32=Current\nS16=PositionC\nS16=PositionA\nS16=PositionB\nU32=PWM DC\nU32=Air Trap Valve State\n" +PREDEFINED_UNHANDLED_MESSAGE_1 = "\n[0x3A00]\nHD_Valves_Data\nU32=ValveID\nU32=PosID\nS16=Position\nS16=Next Position\nF32=Current\nS16=PositionC\nS16=PositionA\nS16=PositionB\nU32=PWM DC\nU32=Air Trap Valve State\n" +PREDEFINED_UNHANDLED_MESSAGE_2 = "\n[0x7A00]\nDG_Flush_Data\nU32=State\nU32=Time\nU32=State Time\n" +PREDEFINED_UNHANDLED_MESSAGE_3 = "\n[0x4500]\nDG_Thermistors_Data\nU32=F32=Board Temp\nU32=F32=PS1 Temp\nU32=F32=PS2 Temp\n" + + ERROR_MESSAGE = { "0x1300" : "Incorrect data length (9 of 32) for received Message with ID '0x1300'", "0x0900" : "Incorrect data length (9 of 20) for received Message with ID '0x0900'" @@ -143,12 +147,20 @@ modify_unhandled_configuration_file() utils.tstStart(__file__) - startApplication("denaliSquish") + startApplication(config.AUT_NAME) #0x3A00 hd_simulator.cmd_send_hd_general_response(message_id = 58, accepted = 1, reason = 1) - verify_log(PREDEFINED_MESSAGE, [1, 1]) + verify_log(PREDEFINED_UNHANDLED_MESSAGE_1, [1, 1]) + #0x8600 + hd_simulator.cmd_send_hd_general_response(message_id = 122, accepted = 0, reason = 1) + verify_log(PREDEFINED_UNHANDLED_MESSAGE_2, [0, 1]) + + #0x4500 + hd_simulator.cmd_send_hd_general_response(message_id = 69, accepted = 1, reason = 0) + verify_log(PREDEFINED_UNHANDLED_MESSAGE_3, [1.4013e-45, 0]) + #0x1300 hd_simulator.cmd_send_hd_general_response(message_id = 19, accepted = 1, reason = 1) error_message = get_error_message_from_log()