2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

modified depending on comments

This commit is contained in:
XuWei 2017-06-01 04:40:13 -04:00
parent b1d75f8704
commit c557dea948
4 changed files with 29 additions and 3 deletions

0
xCAT-test/autotest/testcase/simulator/change_ip.sh Normal file → Executable file
View File

View File

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

View File

@ -0,0 +1,24 @@
#!/bin/bash
os=`cat /etc/*release*`
if [[ "$os" =~ "Red Hat" ]] || [[ "$os" =~ "suse" ]]; then
yum install git
if [ $? != 0 ]; then
echo "Install git Failed." >> $log_file
exit 1
fi
elif [[ "$os" =~ "ubuntu" ]]; then
apt-get install git
if [ $? != 0 ]; then
echo "Install git Failed." >> $log_file
exit 1
fi
fi
cd
git clone git@github.com:xuweibj/openbmc_simulator.git
exit $?

View File

@ -1,8 +1,9 @@
start:setup_openbmc_simulator
cmd:git clone git@github.com:xuweibj/openbmc_simulator.git
description:install dependent packaages, setup and start openbmc simulator
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/install_git.sh
check:rc==0
cmd:/root/openbmc_simulator/simulator &
check:rc==0
cmd:sh /opt/xcat/share/xcat/tools/autotest/testcase/setup_simulator/change_ip.sh -s $$MN $$CN
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/change_ip.sh -s $$MN $$CN
check:rc==0
end