Skip to content

Commit

Permalink
Move setting PYTHONPATH from noxfile.py to common.mk
Browse files Browse the repository at this point in the history
Internal-tag: [#51803]
Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
  • Loading branch information
mkurc-ant committed Jan 10, 2024
1 parent f4bf4db commit 956d1b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions verification/block/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ CURDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
CFGDIR := $(abspath $(CURDIR)/snapshots/default)
CONFIG := $(abspath $(CURDIR)/../../configs)

# Set pythonpath so that tests can access common modules
export PYTHONPATH := $(CURDIR)/common

# Common sources
COMMON_SOURCES = $(CFGDIR)/common_defines.vh
COMMON_SOURCES += $(CFGDIR)/el2_pdef.vh
Expand Down
1 change: 0 additions & 1 deletion verification/block/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def isSimFailure(

def verify_block(session, blockName, testName, coverage=""):
session.install("-r", pipRequirementsPath)
session.env["PYTHONPATH"] = os.path.abspath(os.path.join(os.path.dirname(__file__), "common"))
testPath = os.path.join(blockPath, blockName)
testNameXML = os.path.join(testName + ".xml")
testNameXMLPath = os.path.join(testPath, testNameXML)
Expand Down

0 comments on commit 956d1b1

Please sign in to comment.