2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 01:26:38 +00:00

fix testcase clear_openbmc_simulator error

This commit is contained in:
XuWei 2017-06-07 04:00:17 -04:00
parent 21e84a7895
commit 0aff97e196
2 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,9 @@ elif [ $flag = "-c" ]; then
cnip=`cat /tmp/simulator`
chdef $cnhn bmc=$cnip
process=`ps aux | grep "simulator" | grep "python" | awk -F ' ' '{print $2}'`
kill $process
if [ $process ]; then
kill $process
fi
rm -rf "openbmc_simulator"
fi
exit $?

View File

@ -1,5 +1,5 @@
start:clear_openbmc_simulator
description:clear evironment
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/setup_simulator/change_ip.sh -c $$MN $$CN
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/change_ip.sh -c $$MN $$CN
check:rc==0
end