aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Crymble <matthew.crymble@ni.com>2024-02-16 18:43:39 -0600
committerAki Tomita <121511582+atomita-ni@users.noreply.github.com>2024-02-22 09:09:41 -0600
commit79afa2ef57bcc6d76814f446461c5b9668c57a86 (patch)
tree234e9c1f705cc6bbfc6af42118da74defbd6c41b
parentn3xx: Add comments on clock_source=external,time_source=gpsdo (diff)
downloaduhd-79afa2ef57bcc6d76814f446461c5b9668c57a86.tar.xz
uhd-79afa2ef57bcc6d76814f446461c5b9668c57a86.zip
ci: give extra time after DUT reboot
-rw-r--r--.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml8
1 files changed, 6 insertions, 2 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 be36f04d4..dab01e652 100644
--- a/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml
+++ b/.ci/templates/tests/templates/job-uhd-x4xx-hardware-tests.yml
@@ -162,14 +162,18 @@ jobs:
# 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
+ # after the DUT responds to pings, give the device additional time for
+ # things like the RPC server to come up too
- 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 "sed -i 's/192.168.10.2/$(sfp0ip)/g' /data/network/sfp0.network"
ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "reboot"
- echo "Waiting 240 s for sfp0 at ip $(sfp0ip) to be reachable from host..."
- timeout=240 ; wait_counter=0 ; until $(ping -c 1 -W 1 $(sfp0ip) &>/dev/null) ; do if [ $wait_counter -eq $timeout ]; then echo "Device with ip $(sfp0ip) did not start up within $timeout seconds!" ;break; fi; wait_counter=$((wait_counter+1)); done
+ timeout=240
+ echo "Waiting ${timeout}s for sfp0 at ip $(sfp0ip) to be reachable from host..."
+ wait_counter=0 ; until $(ping -c 1 -W 1 $(sfp0ip) &>/dev/null) ; do if [ $wait_counter -eq $timeout ]; then echo "Device with ip $(sfp0ip) did not start up within $timeout seconds!" ;break; fi; wait_counter=$((wait_counter+1)); done
ssh -o StrictHostKeyChecking=no -tt root@$USRP_EMB_TARGET_IP "ifconfig sfp0"
+ sleep 90
displayName: Set sfp0 IP
condition: and(succeeded(), ${{ parameters.runPyTest }})