gbranden pushed a commit to branch master
in repository groff.

commit df44ef4cfda6ca5956a237b6848e1ce73f90e39e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jun 10 05:49:42 2024 -0500

    [mm]: Fix style nits in tests.
    
    * contrib/mm/tests/place-equation-labels-correctly-in-displays.sh:
    * contrib/mm/tests/remove-stale-bib-entry-data.sh:
      - Dump test document output to standard output stream.
      - Report progress of multiple checks to standard error stream, not
        standard output.
      - Drop redundant "|| exit 1" construct.
---
 contrib/mm/tests/place-equation-labels-correctly-in-displays.sh | 3 ++-
 contrib/mm/tests/remove-stale-bib-entry-data.sh                 | 9 +++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/contrib/mm/tests/place-equation-labels-correctly-in-displays.sh 
b/contrib/mm/tests/place-equation-labels-correctly-in-displays.sh
index 19703972c..43dbac931 100755
--- a/contrib/mm/tests/place-equation-labels-correctly-in-displays.sh
+++ b/contrib/mm/tests/place-equation-labels-correctly-in-displays.sh
@@ -47,6 +47,7 @@ x = y
 .DE'
 
 output=$(printf "%s\n" "$input" | "$groff" -e -mm -Tascii -P-cbou)
+echo "$output"
 
 echo "checking left-aligned displayed equation" >&2
 echo "$output" | grep -Eq 'p=q {54}\(1\)' || wail
@@ -57,6 +58,6 @@ echo "$output" | grep -Eq 'w=z {49}\(2\)' || wail
 echo "checking centered displayed equation" >&2
 echo "$output" | grep -Eq 'x=y {26}\(3\)' || wail
 
-test -z "$fail" || exit 1
+test -z "$fail"
 
 # vim:set ai et sw=4 ts=4 tw=72:
diff --git a/contrib/mm/tests/remove-stale-bib-entry-data.sh 
b/contrib/mm/tests/remove-stale-bib-entry-data.sh
index 5fb68e6bb..2c9bcf144 100755
--- a/contrib/mm/tests/remove-stale-bib-entry-data.sh
+++ b/contrib/mm/tests/remove-stale-bib-entry-data.sh
@@ -51,22 +51,23 @@ bibliography $artifact_dir/60657.ref
 .R2"
 
 output=$(echo "$input" | "$groff" -R -mm -Tascii -P-cbou)
+echo "$output"
 
-echo "checking first entry"
+echo "checking first entry" >&2
 echo "$output" \
     | grep -q "1\. First Author in First Book\. Test one\.$" \
     || wail
 
-echo "checking second entry"
+echo "checking second entry" >&2
 echo "$output" \
     | grep -q "2\. Second Author in Second Book\.$" \
     || wail
 
-echo "checking third entry"
+echo "checking third entry" >&2
 echo "$output" \
     | grep -q "3\. Third Author\.$" \
     || wail
 
-test -z "$fail" || exit 1
+test -z "$fail"
 
 # vim:set ai et sw=4 ts=4 tw=72:

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to