diff options
author | Grant Meyerhoff <grant.meyerhoff@ni.com> | 2023-08-29 11:23:44 -0500 |
---|---|---|
committer | Aki Tomita <121511582+atomita-ni@users.noreply.github.com> | 2023-09-06 10:09:36 -0500 |
commit | 3e27a200e19c1aa23d128158a1668ab4848ebc8b (patch) | |
tree | 71efcc35c957cae9bea7a997cb30fa70b9cc7b86 | |
parent | x4xx: pass reboot mpm command to host on new clock config for x440 (diff) | |
download | uhd-3e27a200e19c1aa23d128158a1668ab4848ebc8b.tar.xz uhd-3e27a200e19c1aa23d128158a1668ab4848ebc8b.zip |
ci: modify default sfp0 and reboot
-rw-r--r-- | .ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml | 9 |
1 files changed, 6 insertions, 3 deletions
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 b29001875..b0029acb9 100644 --- a/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml +++ b/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml @@ -148,12 +148,15 @@ jobs: exit $EXITCODE displayName: Flash FPGA $(dutFPGA) + # When MPM reboots, the sfp0 address is reset to default + # Since rebooting MPM was added for clocking re-config we need + # to change sfp0 default on the device - 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" - ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "ip addr add $(sfp0ip)/24 dev sfp0" - ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "ip link set sfp0 up" + ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "sed -i 's/192.168.10.2/$(sfp0ip)/g' /data/network/sfp0.network" + ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "reboot" + sleep 140 ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "ifconfig sfp0" displayName: Set sfp0 IP condition: and(succeeded(), ${{ parameters.runPyTest }}) |