Skip to content

Commit f8af5a5

Browse files
authored
Merge pull request #176 from JonasDann/bugfix/unit-tests-source-paths
Fixed relative source path in unit test constants
2 parents 0f6d3e1 + a2bb84e commit f8af5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/unit_test/__init__.in.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
constants.MAX_NUMBER_STREAMS = int('${N_STRM_AXI}')
4141
constants.HW_BUILD_FOLDER = '${CMAKE_BINARY_DIR}'
4242
constants.UNIT_TEST_FOLDER = '${UNIT_TEST_DIR}'
43-
constants.SOURCE_FOLDERS = '${APPS_VFPGA_C0_0}'.split()
43+
constants.SOURCE_FOLDERS = [os.path.join('${CMAKE_CURRENT_SOURCE_DIR}', s) for s in '${APPS_VFPGA_C0_0}'.split()]
4444
constants.VFPGA_SOURCE_FOLDER = constants.SOURCE_FOLDERS[0]
4545
constants.N_REGIONS = int('${N_REGIONS}')
4646
constants.CLOCK_PERIOD = "${SIM_CLOCK_PERIOD}"

0 commit comments

Comments
 (0)