From b5269745dd11fc623a1afb584ff8a0d551f51093 Mon Sep 17 00:00:00 2001
From: Claudio Matsuoka <cmatsuoka@gmail.com>
Date: Tue, 29 May 2012 15:23:13 -0300
Subject: [PATCH] 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>
---
 run-tests.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/run-tests.sh b/run-tests.sh
index 7e33405..a52ae16 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -32,7 +32,6 @@ run_test() {
 result=0
 fail=0
 $CMD -v > $LOGFILE
-$CMD -f small "Test results" | tee -a $LOGFILE
 
 file="$TESTDIR/input.txt"
 cmd="cat $file|$CMD"
@@ -44,7 +43,7 @@ if [ -n "$FONTDIR" ]; then
 fi
 echo -n "Current font dir: "; $CMD -I2
 echo -n "Default font: "; $CMD -I3
-echo
+$CMD -f small "Test results" | tee -a $LOGFILE
 
 run_test 001 "showfigfonts output" "./showfigfonts"
 run_test 002 "text rendering in all fonts" \