aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates/job-uhd-streaming-tests.yml
diff options
context:
space:
mode:
authormattprost <matt.prost@ni.com>2022-06-24 13:39:01 -0500
committerskooNI <60897865+skooNI@users.noreply.github.com>2022-07-20 15:57:20 -0500
commitacf2eeb6a494d4ce0473c104feee64d91f693bc8 (patch)
tree5e370b9c7145bc736bba25fdf838b615af34cc8a /.ci/templates/job-uhd-streaming-tests.yml
parentc0ac9f100eaa1d08d30c799a4c45365c7f5204ba (diff)
downloaduhd-acf2eeb6a494d4ce0473c104feee64d91f693bc8.tar.gz
uhd-acf2eeb6a494d4ce0473c104feee64d91f693bc8.tar.bz2
uhd-acf2eeb6a494d4ce0473c104feee64d91f693bc8.zip
ci: Enable root privileges for non-DPDK streaming tests
This allows underlying benchmark_rate calls to elevate the streaming threads' priorities. This is similar to how we invoke the streaming test scripts for DPDK use cases. Signed-off-by: mattprost <matt.prost@ni.com>
Diffstat (limited to '.ci/templates/job-uhd-streaming-tests.yml')
-rw-r--r--.ci/templates/job-uhd-streaming-tests.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.ci/templates/job-uhd-streaming-tests.yml b/.ci/templates/job-uhd-streaming-tests.yml
index 912551b7c..2a3193e91 100644
--- a/.ci/templates/job-uhd-streaming-tests.yml
+++ b/.ci/templates/job-uhd-streaming-tests.yml
@@ -168,7 +168,10 @@ jobs:
echo "##[endgroup]"
set -x
cd ${{ parameters.uhdSrcDir }}/host/tests/pytests
- python3 -B -m pytest -s test_streaming.py -m "not dpdk" --dut_type $(dutType) --test_length ${{ parameters.testLength }} \
+ # Disable creation of __pycache__ files using -B to avoid errors on clean up during next run
+ # as using sudo below creates them with root priveleges.
+ sudo -E LD_LIBRARY_PATH=$LD_LIBRARY_PATH PYTHONPATH=$PYTHONPATH python3 -B -m pytest -s test_streaming.py -m "not dpdk" \
+ --dut_type $(dutType) --test_length ${{ parameters.testLength }} \
--uhd_build_dir $(Build.BinariesDirectory)/uhddev/build --junitxml $(Common.TestResultsDirectory)/TEST-$(dutName).xml \
--addr $(dutAddr) --second_addr $(dutSecondAddr) --mgmt_addr $(dutMgmtAddr) --name $(dutNameId) \
--num_recv_frames $(dutNumRecvFrames) --num_send_frames $(dutNumSendFrames)