groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/01: Fix error handling in tests of mom examples


From: Colin Watson
Subject: [groff] 01/01: Fix error handling in tests of mom examples
Date: Fri, 30 Nov 2018 19:57:19 -0500 (EST)

cjwatson pushed a commit to branch master
in repository groff.

commit d18786e2edf1ab4c6458ee703335e25bd463f1bb
Author: Colin Watson <address@hidden>
Date:   Sat Dec 1 00:52:37 2018 +0000

    Fix error handling in tests of mom examples
    
    * contrib/mom/examples/test-mom.sh.in (check_number_pages): Correct
    error message.
    (check_has_images): Correct shell syntax error.
    
    Signed-off-by: Colin Watson <address@hidden>
---
 contrib/mom/examples/test-mom.sh.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/mom/examples/test-mom.sh.in 
b/contrib/mom/examples/test-mom.sh.in
index f523674..ce47a02 100644
--- a/contrib/mom/examples/test-mom.sh.in
+++ b/contrib/mom/examples/test-mom.sh.in
@@ -36,7 +36,7 @@ check_number_pages()
     echo "Checking number of pages of $1"
     n_pages=`pdfinfo $1  | grep Pages | awk '{ print $2}'`
     if test "$n_pages" != "$2"; then
-       echo "  Error: expected $2 pages, found $res pages"
+       echo "  Error: expected $2 pages, found $n_pages pages"
        ret=255
     fi
 }
@@ -48,7 +48,7 @@ check_has_images()
     n_lines=`pdfimages -list $1 | wc -l `
     if test $n_lines -le 2; then
         echo " no images found"
-        ret = 255;
+        ret=255
     fi
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]