aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/UHDUnitTest.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDUnitTest.cmake b/host/cmake/Modules/UHDUnitTest.cmake
index b32699e28..76dfdd029 100644
--- a/host/cmake/Modules/UHDUnitTest.cmake
+++ b/host/cmake/Modules/UHDUnitTest.cmake
@@ -118,4 +118,6 @@ function(UHD_ADD_PYTEST test_name)
-p "${test_name}.*"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/python"
)
+ set_tests_properties(${test_name} PROPERTIES
+ ENVIRONMENT PYTHONPATH=${CMAKE_SOURCE_DIR}/tests/common)
endfunction(UHD_ADD_PYTEST)