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:
parent
21e84a7895
commit
0aff97e196
@ -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 $?
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user