From 319673984828ac2809e5bae4bdb25a6b0c818117 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Wed, 12 Aug 2020 09:58:25 -0400 Subject: [PATCH] Retry rinstall if first one fails --- xCAT-test/autotest/testcase/commoncmd/retry_install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/xCAT-test/autotest/testcase/commoncmd/retry_install.sh b/xCAT-test/autotest/testcase/commoncmd/retry_install.sh index f49f69f92..d98f9fc7a 100755 --- a/xCAT-test/autotest/testcase/commoncmd/retry_install.sh +++ b/xCAT-test/autotest/testcase/commoncmd/retry_install.sh @@ -30,8 +30,13 @@ do echo "rinstall $node osimage=$osimage" rinstall $node osimage=$osimage if [ $? != 0 ];then - echo "rinstall command failed ..." - exit 1 + echo "First attempt to run rinstall command failed ..." + # First rinstall failed, try again with verbose flag + rinstall $node osimage=$osimage -V + if [ $? != 0 ];then + echo "Second attempt to run rinstall command failed ..." + exit 1 + fi fi #sleep while for installation.