From db58c836f6bc151a4ba113544a8ea5d3ddedc40c Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Mon, 28 Dec 2020 18:52:47 -0800 Subject: [PATCH] Use absolute path to test directory --- tb/axi_adapter/test_axi_adapter.py | 2 +- tb/axi_axil_adapter/test_axi_axil_adapter.py | 2 +- tb/axi_cdma/test_axi_cdma.py | 2 +- tb/axi_crossbar/test_axi_crossbar.py | 2 +- tb/axi_dma/test_axi_dma.py | 2 +- tb/axi_dma_rd/test_axi_dma_rd.py | 2 +- tb/axi_dma_wr/test_axi_dma_wr.py | 2 +- tb/axi_dp_ram/test_axi_dp_ram.py | 2 +- tb/axi_fifo/test_axi_fifo.py | 2 +- tb/axi_interconnect/test_axi_interconnect.py | 2 +- tb/axi_ram/test_axi_ram.py | 2 +- tb/axi_register/test_axi_register.py | 2 +- tb/axil_adapter/test_axil_adapter.py | 2 +- tb/axil_cdc/test_axil_cdc.py | 2 +- tb/axil_dp_ram/test_axil_dp_ram.py | 2 +- tb/axil_interconnect/test_axil_interconnect.py | 2 +- tb/axil_ram/test_axil_ram.py | 2 +- tb/axil_register/test_axil_register.py | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tb/axi_adapter/test_axi_adapter.py b/tb/axi_adapter/test_axi_adapter.py index 5deeb4853..5f2617cf6 100644 --- a/tb/axi_adapter/test_axi_adapter.py +++ b/tb/axi_adapter/test_axi_adapter.py @@ -204,7 +204,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_axil_adapter/test_axi_axil_adapter.py b/tb/axi_axil_adapter/test_axi_axil_adapter.py index b9762d7c6..97dfc1f65 100644 --- a/tb/axi_axil_adapter/test_axi_axil_adapter.py +++ b/tb/axi_axil_adapter/test_axi_axil_adapter.py @@ -204,7 +204,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_cdma/test_axi_cdma.py b/tb/axi_cdma/test_axi_cdma.py index 67a2992da..6e024b48e 100644 --- a/tb/axi_cdma/test_axi_cdma.py +++ b/tb/axi_cdma/test_axi_cdma.py @@ -150,7 +150,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_crossbar/test_axi_crossbar.py b/tb/axi_crossbar/test_axi_crossbar.py index a351d7b1d..9010b2309 100644 --- a/tb/axi_crossbar/test_axi_crossbar.py +++ b/tb/axi_crossbar/test_axi_crossbar.py @@ -226,7 +226,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_dma/test_axi_dma.py b/tb/axi_dma/test_axi_dma.py index cd834e9cd..964b2723a 100644 --- a/tb/axi_dma/test_axi_dma.py +++ b/tb/axi_dma/test_axi_dma.py @@ -222,7 +222,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_dma_rd/test_axi_dma_rd.py b/tb/axi_dma_rd/test_axi_dma_rd.py index 84d94690d..beb733572 100644 --- a/tb/axi_dma_rd/test_axi_dma_rd.py +++ b/tb/axi_dma_rd/test_axi_dma_rd.py @@ -152,7 +152,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_dma_wr/test_axi_dma_wr.py b/tb/axi_dma_wr/test_axi_dma_wr.py index 0624f82ec..3ea20dc09 100644 --- a/tb/axi_dma_wr/test_axi_dma_wr.py +++ b/tb/axi_dma_wr/test_axi_dma_wr.py @@ -160,7 +160,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_dp_ram/test_axi_dp_ram.py b/tb/axi_dp_ram/test_axi_dp_ram.py index 39e807677..4dc71da16 100644 --- a/tb/axi_dp_ram/test_axi_dp_ram.py +++ b/tb/axi_dp_ram/test_axi_dp_ram.py @@ -242,7 +242,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_fifo/test_axi_fifo.py b/tb/axi_fifo/test_axi_fifo.py index 3e6cee9de..434bddfb3 100644 --- a/tb/axi_fifo/test_axi_fifo.py +++ b/tb/axi_fifo/test_axi_fifo.py @@ -205,7 +205,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_interconnect/test_axi_interconnect.py b/tb/axi_interconnect/test_axi_interconnect.py index 530730b76..11fb14554 100644 --- a/tb/axi_interconnect/test_axi_interconnect.py +++ b/tb/axi_interconnect/test_axi_interconnect.py @@ -220,7 +220,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_ram/test_axi_ram.py b/tb/axi_ram/test_axi_ram.py index 1f67373c0..a25521c41 100644 --- a/tb/axi_ram/test_axi_ram.py +++ b/tb/axi_ram/test_axi_ram.py @@ -196,7 +196,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axi_register/test_axi_register.py b/tb/axi_register/test_axi_register.py index 6ffc0195d..d97088e85 100644 --- a/tb/axi_register/test_axi_register.py +++ b/tb/axi_register/test_axi_register.py @@ -204,7 +204,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axil_adapter/test_axil_adapter.py b/tb/axil_adapter/test_axil_adapter.py index 975db0490..93f40b2cc 100644 --- a/tb/axil_adapter/test_axil_adapter.py +++ b/tb/axil_adapter/test_axil_adapter.py @@ -191,7 +191,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axil_cdc/test_axil_cdc.py b/tb/axil_cdc/test_axil_cdc.py index acceb0ad6..8bc7633a1 100644 --- a/tb/axil_cdc/test_axil_cdc.py +++ b/tb/axil_cdc/test_axil_cdc.py @@ -196,7 +196,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axil_dp_ram/test_axil_dp_ram.py b/tb/axil_dp_ram/test_axil_dp_ram.py index 9741292e8..95a2c40d0 100644 --- a/tb/axil_dp_ram/test_axil_dp_ram.py +++ b/tb/axil_dp_ram/test_axil_dp_ram.py @@ -227,7 +227,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axil_interconnect/test_axil_interconnect.py b/tb/axil_interconnect/test_axil_interconnect.py index 54216cb27..6a684fe50 100644 --- a/tb/axil_interconnect/test_axil_interconnect.py +++ b/tb/axil_interconnect/test_axil_interconnect.py @@ -208,7 +208,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axil_ram/test_axil_ram.py b/tb/axil_ram/test_axil_ram.py index 9e14b5607..b5df9c5bc 100644 --- a/tb/axil_ram/test_axil_ram.py +++ b/tb/axil_ram/test_axil_ram.py @@ -183,7 +183,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl')) diff --git a/tb/axil_register/test_axil_register.py b/tb/axil_register/test_axil_register.py index 4545b9f49..ea6f6ac75 100644 --- a/tb/axil_register/test_axil_register.py +++ b/tb/axil_register/test_axil_register.py @@ -191,7 +191,7 @@ if cocotb.SIM_NAME: # cocotb-test -tests_dir = os.path.dirname(__file__) +tests_dir = os.path.abspath(os.path.dirname(__file__)) rtl_dir = os.path.abspath(os.path.join(tests_dir, '..', '..', 'rtl'))