diff options
3 files changed, 14 insertions, 3 deletions
diff --git a/.ci/templates/tests/job-uhd-x4xx-hardware-tests-pebbles.yml b/.ci/templates/tests/job-uhd-x4xx-hardware-tests-pebbles.yml index d4624a043..454d666cb 100644 --- a/.ci/templates/tests/job-uhd-x4xx-hardware-tests-pebbles.yml +++ b/.ci/templates/tests/job-uhd-x4xx-hardware-tests-pebbles.yml @@ -23,6 +23,7 @@ jobs: dutName: 'pebbles-x410-0' dutType: 'x4xx' devtestPattern: 'x4x0' + dutFPGA: 'X4_200' dutEmbeddedImagesArtifact: 'x4xx-images' uartSerial: '2516351DDCC0' pipelineAgent: pebbles-agent-1 diff --git a/.ci/templates/tests/job-uhd-x4xx-hardware-tests-sdr-test0.yml b/.ci/templates/tests/job-uhd-x4xx-hardware-tests-sdr-test0.yml index a19675129..8d1859db6 100644 --- a/.ci/templates/tests/job-uhd-x4xx-hardware-tests-sdr-test0.yml +++ b/.ci/templates/tests/job-uhd-x4xx-hardware-tests-sdr-test0.yml @@ -23,6 +23,7 @@ jobs: dutName: 'sdr-test0-x410-0' dutType: 'x4xx' devtestPattern: 'x4x0' + dutFPGA: 'X4_200' dutEmbeddedImagesArtifact: 'x4xx-images' uartSerial: '2516351FE64E' pipelineAgent: sdr-test0 diff --git a/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml b/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml index 7dcfdf60e..b692cfd82 100644 --- a/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml +++ b/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml @@ -126,10 +126,21 @@ jobs: # required to make the test runtimes to look sane. - script: | export HOST_TIME_ZONE=$(cat /etc/timezone) + ssh-keygen -f ~/.ssh/known_hosts -R $USRP_EMB_TARGET_IP ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "timedatectl set-timezone $HOST_TIME_ZONE" displayName: Set timezone to Host - script: | + sleep 60 + displayName: Wait for device to finish booting + + - script: | + ssh-keygen -f ~/.ssh/known_hosts -R $USRP_EMB_TARGET_IP + ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "uhd_image_loader --args addr=localhost,type=$(dutType),fpga=$(dutFPGA)" + sleep 60 + displayName: Flash FPGA $(dutFPGA) + + - script: | source $USRP_EMB_VENV/bin/activate ssh-keygen -f ~/.ssh/known_hosts -R $USRP_EMB_TARGET_IP ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "ip link set sfp0 down" @@ -139,9 +150,6 @@ jobs: displayName: Set sfp0 IP condition: and(succeeded(), ${{ parameters.runPyTest }}) - - script: | - sleep 60 - displayName: Wait for device to finish booting - script: | mkdir -p $(Common.TestResultsDirectory)/sysimg_tests/sysimg_subsystem_tests @@ -216,6 +224,7 @@ jobs: - script: | mkdir -p $(Common.TestResultsDirectory)/pytest/embedded cd $(Common.TestResultsDirectory)/pytest/embedded + ssh-keygen -f ~/.ssh/known_hosts -R $USRP_EMB_TARGET_IP ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "pip3 install --upgrade pytest pytest-helpers-namespace pytest-tempdir pytest-salt" ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "rm -rf ~/usrp_pytest && mkdir -p ~/usrp_pytest" scp -o StrictHostKeyChecking=no -r $(Build.SourcesDirectory)/ettus-rts/config/remote/ root@$USRP_EMB_TARGET_IP:~/usrp_pytest |