From f3ea0a27296b6fbc7d6dc0a2f87a35edd07f9924 Mon Sep 17 00:00:00 2001 From: XuWei Date: Tue, 20 Jun 2017 02:53:12 -0400 Subject: [PATCH] When start simulator failed, will exit not mkdef nodes --- xCAT-test/autotest/testcase/simulator/config_simulator.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-test/autotest/testcase/simulator/config_simulator.sh b/xCAT-test/autotest/testcase/simulator/config_simulator.sh index 80860227a..fc4013fdd 100755 --- a/xCAT-test/autotest/testcase/simulator/config_simulator.sh +++ b/xCAT-test/autotest/testcase/simulator/config_simulator.sh @@ -47,6 +47,10 @@ if [ $flag = "-s" ]; then rmdef $cnhn /root/openbmc_simulator/simulator -n $nic -r $range + if [ $? != 0 ]; then + echo "Start simulator Failed" + exit 1 + fi node_end=$[nodes-1] chdef -t group $cnhn mgt=openbmc bmc="|\D+(\d+)$|10.100.(1+((\$1)/100)).((\$1)%100+1)|" bmcusername=$username bmcpassword=$password