Test script change: merged new2+new functions

This commit is contained in:
Olof hagsand 2019-02-02 12:20:47 +01:00
parent cf4f626719
commit 936ae389e8
12 changed files with 102 additions and 110 deletions

View file

@ -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
}