aboutsummaryrefslogtreecommitdiffstats
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
parentci: Add n321 to devtest (diff)
downloaduhd-acf2eeb6a494d4ce0473c104feee64d91f693bc8.tar.xz
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>
-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)