From acf2eeb6a494d4ce0473c104feee64d91f693bc8 Mon Sep 17 00:00:00 2001 From: mattprost Date: Fri, 24 Jun 2022 13:39:01 -0500 Subject: 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 --- .ci/templates/job-uhd-streaming-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3