From 6e5b737f4d244f9acc860b484b1542f7c4405383 Mon Sep 17 00:00:00 2001 From: Dylan Barrie Date: Thu, 7 Dec 2023 00:45:28 -0800 Subject: [PATCH] Add explicit python3 prefix to all python paths in test suite --- tb/pcie_tlp_demux/Makefile | 2 +- tb/pcie_tlp_demux/test_pcie_tlp_demux.py | 2 +- tb/pcie_tlp_demux_bar/Makefile | 2 +- tb/pcie_tlp_demux_bar/test_pcie_tlp_demux_bar.py | 2 +- tb/pcie_tlp_fifo_mux/Makefile | 2 +- tb/pcie_tlp_fifo_mux/test_pcie_tlp_fifo_mux.py | 2 +- tb/pcie_tlp_mux/Makefile | 2 +- tb/pcie_tlp_mux/test_pcie_tlp_mux.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tb/pcie_tlp_demux/Makefile b/tb/pcie_tlp_demux/Makefile index 2fac725..648bdbd 100644 --- a/tb/pcie_tlp_demux/Makefile +++ b/tb/pcie_tlp_demux/Makefile @@ -70,7 +70,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PORTS) + python3 $< -p $(PORTS) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/pcie_tlp_demux/test_pcie_tlp_demux.py b/tb/pcie_tlp_demux/test_pcie_tlp_demux.py index f4a8f42..e6dfc1f 100644 --- a/tb/pcie_tlp_demux/test_pcie_tlp_demux.py +++ b/tb/pcie_tlp_demux/test_pcie_tlp_demux.py @@ -261,7 +261,7 @@ def test_pcie_tlp_demux(request, pcie_data_width, tlp_seg_count, ports): wrapper_file = os.path.join(tests_dir, f"{wrapper}.v") if not os.path.exists(wrapper_file): subprocess.Popen( - [os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], + ["python3", os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], cwd=tests_dir ).wait() diff --git a/tb/pcie_tlp_demux_bar/Makefile b/tb/pcie_tlp_demux_bar/Makefile index 6c5bd89..c9d259f 100644 --- a/tb/pcie_tlp_demux_bar/Makefile +++ b/tb/pcie_tlp_demux_bar/Makefile @@ -74,7 +74,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PORTS) + python3 $< -p $(PORTS) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/pcie_tlp_demux_bar/test_pcie_tlp_demux_bar.py b/tb/pcie_tlp_demux_bar/test_pcie_tlp_demux_bar.py index 7fe8c6d..48dedfb 100644 --- a/tb/pcie_tlp_demux_bar/test_pcie_tlp_demux_bar.py +++ b/tb/pcie_tlp_demux_bar/test_pcie_tlp_demux_bar.py @@ -251,7 +251,7 @@ def test_pcie_tlp_demux_bar(request, pcie_data_width, tlp_seg_count, ports): wrapper_file = os.path.join(tests_dir, f"{wrapper}.v") if not os.path.exists(wrapper_file): subprocess.Popen( - [os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], + ["python3", os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], cwd=tests_dir ).wait() diff --git a/tb/pcie_tlp_fifo_mux/Makefile b/tb/pcie_tlp_fifo_mux/Makefile index 79a4371..2dd65d1 100644 --- a/tb/pcie_tlp_fifo_mux/Makefile +++ b/tb/pcie_tlp_fifo_mux/Makefile @@ -71,7 +71,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PORTS) + python3 $< -p $(PORTS) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/pcie_tlp_fifo_mux/test_pcie_tlp_fifo_mux.py b/tb/pcie_tlp_fifo_mux/test_pcie_tlp_fifo_mux.py index 254e735..0255396 100644 --- a/tb/pcie_tlp_fifo_mux/test_pcie_tlp_fifo_mux.py +++ b/tb/pcie_tlp_fifo_mux/test_pcie_tlp_fifo_mux.py @@ -248,7 +248,7 @@ def test_pcie_tlp_fifo_mux(request, pcie_data_width, tlp_seg_count, ports, round wrapper_file = os.path.join(tests_dir, f"{wrapper}.v") if not os.path.exists(wrapper_file): subprocess.Popen( - [os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], + ["python3", os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], cwd=tests_dir ).wait() diff --git a/tb/pcie_tlp_mux/Makefile b/tb/pcie_tlp_mux/Makefile index 5980ab9..9f64da2 100644 --- a/tb/pcie_tlp_mux/Makefile +++ b/tb/pcie_tlp_mux/Makefile @@ -66,7 +66,7 @@ endif include $(shell cocotb-config --makefiles)/Makefile.sim $(WRAPPER).v: ../../rtl/$(DUT)_wrap.py - $< -p $(PORTS) + python3 $< -p $(PORTS) iverilog_dump.v: echo 'module iverilog_dump();' > $@ diff --git a/tb/pcie_tlp_mux/test_pcie_tlp_mux.py b/tb/pcie_tlp_mux/test_pcie_tlp_mux.py index d04d0a6..5a79d5a 100644 --- a/tb/pcie_tlp_mux/test_pcie_tlp_mux.py +++ b/tb/pcie_tlp_mux/test_pcie_tlp_mux.py @@ -248,7 +248,7 @@ def test_pcie_tlp_mux(request, pcie_data_width, tlp_seg_count, ports, round_robi wrapper_file = os.path.join(tests_dir, f"{wrapper}.v") if not os.path.exists(wrapper_file): subprocess.Popen( - [os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], + ["python3", os.path.join(rtl_dir, f"{dut}_wrap.py"), "-p", f"{ports}"], cwd=tests_dir ).wait()