Skip to content

Commit

Permalink
Add explicit python3 prefix to all python paths in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrie committed Dec 7, 2023
1 parent 75126f1 commit 6e5b737
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tb/pcie_tlp_demux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_demux/test_pcie_tlp_demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_demux_bar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_demux_bar/test_pcie_tlp_demux_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_fifo_mux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_fifo_mux/test_pcie_tlp_fifo_mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_mux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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();' > $@
Expand Down
2 changes: 1 addition & 1 deletion tb/pcie_tlp_mux/test_pcie_tlp_mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 6e5b737

Please sign in to comment.