From 56d07f6de8869a95a9bb59b6958b80fa0d57f8fa Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Thu, 28 Apr 2022 10:23:42 -0400 Subject: [PATCH] More flexible wait time for node to reboot --- .../installation/reg_linux_diskfull_installation_hierarchy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/installation/reg_linux_diskfull_installation_hierarchy b/xCAT-test/autotest/testcase/installation/reg_linux_diskfull_installation_hierarchy index d3e6f1445..189e59def 100644 --- a/xCAT-test/autotest/testcase/installation/reg_linux_diskfull_installation_hierarchy +++ b/xCAT-test/autotest/testcase/installation/reg_linux_diskfull_installation_hierarchy @@ -109,7 +109,10 @@ check:rc==0 # Check node can be rebooted from disk cmd:xdsh $$CN shutdown -r now -cmd:sleep 420 + +# Wait for node to reboot (10sec x 60) +cmd:a=0;while ! `xdsh $$CN -t 5 uptime 2>&1 | grep up >/dev/null`; do sleep 10;((a++));if [ $a -gt 60 ];then break;fi done + cmd:xdsh $$CN uptime check:rc==0 check:output=~up