cecho changes in UML scripts

This commit is contained in:
Andreas Steffen
2007-05-23 22:24:47 +00:00
parent c502b1b4c6
commit 0749196612
5 changed files with 11 additions and 10 deletions
+3 -2
View File
@@ -565,12 +565,13 @@ do
# write test status to html file # write test status to html file
# #
cecho "$STATUS"
if [ $STATUS = "passed" ] if [ $STATUS = "passed" ]
then then
COLOR="green" COLOR="green"
cecho "\033[1;32m$STATUS"
else else
COLOR="red" COLOR="red"
cecho "$STATUS"
fi fi
cat >> $TESTRESULTSHTML << @EOF cat >> $TESTRESULTSHTML << @EOF
@@ -630,7 +631,7 @@ cat >> $INDEX << @EOF
@EOF @EOF
cecho "" cecho ""
cecho "Passed: $passed_cnt" cecho "\033[1;32mPassed: $passed_cnt"
cecho "Failed: $failed_cnt" cecho "Failed: $failed_cnt"
cecho "" cecho ""
+2 -2
View File
@@ -22,11 +22,11 @@
# #
function cecho { function cecho {
echo -e "\033\13301;31m$1\033\1330m" echo -e "\033[1;31m$1\033[0m"
} }
function cecho-n { function cecho-n {
echo -en "\033\13301;31m$1\033\1330m" echo -en "\033[1;31m$1\033[0m"
} }
+2 -2
View File
@@ -68,7 +68,7 @@ do
ubda=$UMLHOSTFS \ ubda=$UMLHOSTFS \
\$SWITCH_${host} \ \$SWITCH_${host} \
mem=${MEM}M con=pty con0=fd:0,fd:1" & mem=${MEM}M con=pty con0=fd:0,fd:1" &
cecho "done" cecho "\033[1;32mdone"
fi fi
let "x0+=dx" let "x0+=dx"
let "y0+=dy" let "y0+=dy"
@@ -114,7 +114,7 @@ do
cecho "exit" cecho "exit"
exit 1 exit 1
else else
cecho "up" cecho "\033[1;32mup"
fi fi
done done
+2 -2
View File
@@ -31,9 +31,9 @@ do
cecho " * Great, umlswitch$n is already running!" cecho " * Great, umlswitch$n is already running!"
else else
cecho-n " * Starting umlswitch$n.." cecho-n " * Starting umlswitch$n.."
uml_switch -hub -tap tap$n -unix /tmp/umlswitch$n >/dev/null </dev/null & uml_switch -tap tap$n -unix /tmp/umlswitch$n >/dev/null </dev/null &
sleep 2 sleep 2
eval ifconfig "tap$n \$IFCONFIG_$n up" eval ifconfig "tap$n \$IFCONFIG_$n up"
cecho "done" cecho "\033[1;32mdone"
fi fi
done done
+2 -2
View File
@@ -39,7 +39,7 @@ for host in $HOSTS
do do
uml_mconsole $host halt &> /dev/null uml_mconsole $host halt &> /dev/null
done done
cecho "done" cecho "\033[1;32mdone"
##################################################### #####################################################
# Shutting down the uml switches # Shutting down the uml switches
@@ -47,5 +47,5 @@ cecho "done"
cecho-n " * Stopping the UML switches.." cecho-n " * Stopping the UML switches.."
killall uml_switch &> /dev/null killall uml_switch &> /dev/null
rm -f /tmp/umlswitch[012] &> /dev/null 2>&1 rm -f /tmp/umlswitch[012] &> /dev/null 2>&1
cecho "done" cecho "\033[1;32mdone"