Fix banner placement in test script
Test banner was being print before setting the fonts directory, which make it fail if FIGlet is not already installed on the system. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
7781d151a1
commit
b5269745dd
@ -32,7 +32,6 @@ run_test() {
|
|||||||
result=0
|
result=0
|
||||||
fail=0
|
fail=0
|
||||||
$CMD -v > $LOGFILE
|
$CMD -v > $LOGFILE
|
||||||
$CMD -f small "Test results" | tee -a $LOGFILE
|
|
||||||
|
|
||||||
file="$TESTDIR/input.txt"
|
file="$TESTDIR/input.txt"
|
||||||
cmd="cat $file|$CMD"
|
cmd="cat $file|$CMD"
|
||||||
@ -44,7 +43,7 @@ if [ -n "$FONTDIR" ]; then
|
|||||||
fi
|
fi
|
||||||
echo -n "Current font dir: "; $CMD -I2
|
echo -n "Current font dir: "; $CMD -I2
|
||||||
echo -n "Default font: "; $CMD -I3
|
echo -n "Default font: "; $CMD -I3
|
||||||
echo
|
$CMD -f small "Test results" | tee -a $LOGFILE
|
||||||
|
|
||||||
run_test 001 "showfigfonts output" "./showfigfonts"
|
run_test 001 "showfigfonts output" "./showfigfonts"
|
||||||
run_test 002 "text rendering in all fonts" \
|
run_test 002 "text rendering in all fonts" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user