aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
authorLane Kolbly <lane.kolbly@ni.com>2020-10-08 17:03:11 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-10-15 16:00:54 -0500
commit0167ad7608adb170970458b19735738808f0c5c8 (patch)
tree85427c21ca1d3d3c7222a56087c3488fdae49e6e /host/cmake
parentc484b79a7672d6c5d0886199955b015d1b4bc387 (diff)
downloaduhd-0167ad7608adb170970458b19735738808f0c5c8.tar.gz
uhd-0167ad7608adb170970458b19735738808f0c5c8.tar.bz2
uhd-0167ad7608adb170970458b19735738808f0c5c8.zip
uhd_images_downloader: Add environment variable for http auth
This allows the image downloader to download files from restricted sources using HTTP basic auth, specifying the credentials in the UHD_IMAGES_USER and UHD_IMAGES_PASSWORD environment variables: ``` UHD_IMAGES_USER=lane UHD_IMAGES_PASSWORD=MyS3cretPassword uhd_images_downloader.py ```
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/UHDUnitTest.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/cmake/Modules/UHDUnitTest.cmake b/host/cmake/Modules/UHDUnitTest.cmake
index 340279b9b..d477dc966 100644
--- a/host/cmake/Modules/UHDUnitTest.cmake
+++ b/host/cmake/Modules/UHDUnitTest.cmake
@@ -130,6 +130,7 @@ function(UHD_ADD_PYTEST test_name)
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/python"
)
endif(ENABLE_QEMU_UNITTESTS)
+ # Include ${CMAKE_BINARY_DIR}/utils/ for testing the python utils
set_tests_properties(${test_name} PROPERTIES
- ENVIRONMENT PYTHONPATH=${CMAKE_SOURCE_DIR}/tests/common)
+ ENVIRONMENT PYTHONPATH=${CMAKE_SOURCE_DIR}/tests/common:${CMAKE_BINARY_DIR}/utils/)
endfunction(UHD_ADD_PYTEST)