cjwatson pushed a commit to branch master
in repository groff.
commit d18786e2edf1ab4c6458ee703335e25bd463f1bb
Author: Colin Watson <[email protected]>
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 <[email protected]>
---
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
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit