diff options
-rw-r--r-- | .ci/templates/job-uhd-streaming-tests.yml | 5 |
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) |