Procházet zdrojové kódy

fix(test): keep soak target transactions legal

root před 3 měsíci
rodič
revize
075d7d95c3
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      tests/cocotb/test_6400_v1_soak.py

+ 3 - 1
tests/cocotb/test_6400_v1_soak.py

@@ -185,7 +185,9 @@ async def test_accelerated_randomized_system_soak(dut):
             counters["bmc_random"] += 1
         elif action == 1:
             port = "rs232" if iteration & 1 else "ttl"
-            target = rng.choice((58, 63, 70, 75))
+            # SET_TARGET accepts only 0 or 20..70. Keep this positive path
+            # entirely legal; invalid-target silent drops are covered by L4.
+            target = rng.choice((58, 63, 67, 70))
             await wait_host_idle(dut)
             await set_target(dut, port, target)
             await wait_host_idle(dut)