Просмотр исходного кода

fix(host): treat missing cocotb as RTL NOT RUN, not FAIL

Co-authored-by: Cursor <cursoragent@cursor.com>
root 3 месяцев назад
Родитель
Сommit
06d7d72a50
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      tools/rtl_uart_cosim/run_hthd_pty_rtl.py

+ 3 - 2
tools/rtl_uart_cosim/run_hthd_pty_rtl.py

@@ -84,6 +84,7 @@ def _select_cocotb_python() -> Path | None:
         Path("/opt/hth-cocotb312/bin/python"),
         Path("/opt/hth-cocotb/bin/python"),
         Path("/root/.cache/prod2u/venvs/verify/bin/python"),
+        Path("/data/prod2u/venvs/hth-verify/bin/python"),
         Path(sys.executable),
     ]
     for cand in candidates:
@@ -589,7 +590,7 @@ def main() -> int:
     except Exception as exc:
         print("RTL-in-the-loop hthd+PTY+UART-bit: NOT RUN")
         print("source_manifest:", exc)
-        return 2 if skip else 1
+        return 2
     if not uart_top.is_file():
         missing_rtl.append(str(uart_top))
     if cad is None or py is None or missing_rtl:
@@ -597,7 +598,7 @@ def main() -> int:
         print("cad_root:", cad)
         print("cocotb_python:", py)
         print("missing_rtl:", ",".join(missing_rtl) or "none")
-        return 2 if skip else 1
+        return 2
 
     if Path(sys.executable).resolve() != py.resolve():
         env = os.environ.copy()