Test script change: merged new2+new functions
This commit is contained in:
parent
cf4f626719
commit
936ae389e8
12 changed files with 102 additions and 110 deletions
10
test/lib.sh
10
test/lib.sh
|
|
@ -87,12 +87,6 @@ new(){
|
|||
testname=$1
|
||||
>&2 echo "Test$testnr [$1]"
|
||||
}
|
||||
# No CR
|
||||
new2(){
|
||||
testnr=`expr $testnr + 1`
|
||||
testname=$1
|
||||
>&2 echo -n "Test$testnr [$1]"
|
||||
}
|
||||
|
||||
# clixon command tester.
|
||||
# Arguments:
|
||||
|
|
@ -158,9 +152,7 @@ expecteq(){
|
|||
if [ -z "$ret" -a -z "$expect" ]; then
|
||||
return
|
||||
fi
|
||||
if [[ "$ret" = "$expect" ]]; then
|
||||
echo
|
||||
else
|
||||
if [[ "$ret" != "$expect" ]]; then
|
||||
err "$expect" "$ret"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue