aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-02-07 12:19:35 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-07 16:01:53 -0600
commita263d72769cc4e975f35f44360e729da9ed5a8d3 (patch)
tree45a15fcf805225c68ac6772ae38d64c8fd67e45d /.ci/templates
parent828aa591806c5a28bd7b2a13d22585a03f3a3332 (diff)
downloaduhd-a263d72769cc4e975f35f44360e729da9ed5a8d3.tar.gz
uhd-a263d72769cc4e975f35f44360e729da9ed5a8d3.tar.bz2
uhd-a263d72769cc4e975f35f44360e729da9ed5a8d3.zip
ci: flash fpga on x410 ATS runs
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates')
-rw-r--r--.ci/templates/tests/job-uhd-x4xx-hardware-tests-pebbles.yml1
-rw-r--r--.ci/templates/tests/job-uhd-x4xx-hardware-tests-sdr-test0.yml1
-rw-r--r--.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml15
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