mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Add test case for openbmc rspconfig command #2912
This commit is contained in:
parent
983c6a9229
commit
2f284f566e
@ -28,7 +28,7 @@ function change_ip()
|
||||
ip4=`echo $1|awk -F. '{print $4}'`
|
||||
echo ip is $ip1.$ip2.$ip3.$ip4
|
||||
ip=$ip4;
|
||||
while [[ $ip != "10" ]]; do
|
||||
while [[ $ip != "254" ]]; do
|
||||
ping $ip1.$ip2.$ip3.$ip -c 2 > /dev/null;
|
||||
if [[ $? != 0 ]]; then
|
||||
coutip="$ip1.$ip2.$ip3.$ip"
|
||||
@ -49,7 +49,7 @@ function change_ip()
|
||||
function check_result {
|
||||
|
||||
a=0; while true;
|
||||
do [ $a -eq 3 ] && exit 1;
|
||||
do [ $a -eq 10 ] && exit 1;
|
||||
echo $a
|
||||
sleep 20
|
||||
output=$(rspconfig $1 $2 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user