修正测试用例

This commit is contained in:
2025-08-10 01:54:48 +08:00
parent 113a6e0dda
commit 9d5c7b15da
9 changed files with 76 additions and 71 deletions

View File

@@ -471,7 +471,7 @@ def tc8():
gen_file_def = "base_tc08"
sm_idx = 0
tc_des = "测试RESET仅复位主站和2号设备链路和网络被破坏发送广播包只能到1,23,4收不到。\\n" \
+ "通过嗅探包、设置顺序地址命令等重新建立网络。"
+ "复位后,必须清除中断才能正常工作。通过嗅探包、设置顺序地址命令等重新建立网络。"
#>>>>>>设置顺序地址
genPkt.clean()
@@ -509,6 +509,10 @@ def tc8():
+genWriteTransPktCode(gen_file_def, sm_idx)
+genTrgTransPktCode(gen_file_def, sm_idx)
+genReadAckPktCode(gen_file_def, sm_idx)
+genMessageCode("--清除中断")
+genIFRwDataCode(0, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff])
+genIFRwDataCode(2, 0x78, True, 4, [0xff, 0xff, 0xff, 0xff])
)
genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1)