diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2020-10-08 17:03:11 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-10-15 16:00:54 -0500 |
commit | 0167ad7608adb170970458b19735738808f0c5c8 (patch) | |
tree | 85427c21ca1d3d3c7222a56087c3488fdae49e6e /host/cmake | |
parent | c484b79a7672d6c5d0886199955b015d1b4bc387 (diff) | |
download | uhd-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.cmake | 3 |
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) |