From 0167ad7608adb170970458b19735738808f0c5c8 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Thu, 8 Oct 2020 17:03:11 -0500 Subject: 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 ``` --- host/cmake/Modules/UHDUnitTest.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/cmake/Modules') 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) -- cgit v1.2.3