texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/tests/run_parser_all.sh (post_process_output


From: Gavin D. Smith
Subject: branch master updated: * tp/tests/run_parser_all.sh (post_process_output): Strip line with missing file error from logs for predictable results.
Date: Sat, 03 Dec 2022 06:08:13 -0500

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new c1f54ca013 * tp/tests/run_parser_all.sh (post_process_output): Strip 
line with missing file error from logs for predictable results.
c1f54ca013 is described below

commit c1f54ca0136c31627f61d3af0a697808dba814c2
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Dec 3 11:08:04 2022 +0000

    * tp/tests/run_parser_all.sh (post_process_output): Strip
    line with missing file error from logs for predictable results.
---
 ChangeLog                                                        | 5 +++++
 tp/tests/formatting/res_parser/info_extension_warning/foo.info.2 | 1 -
 tp/tests/run_parser_all.sh                                       | 9 ++++++---
 3 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0517ad3aa3..10e72b3f87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-12-03  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       * tp/tests/run_parser_all.sh (post_process_output): Strip
+       line with missing file error from logs for predictable results.
+
 2022-12-03  Gavin Smith  <gavinsmith0123@gmail.com>
 
        * tp/texi2any.pl: Strip directories from filename in warning for
diff --git a/tp/tests/formatting/res_parser/info_extension_warning/foo.info.2 
b/tp/tests/formatting/res_parser/info_extension_warning/foo.info.2
index aefd727f89..4cd72f4b2b 100644
--- a/tp/tests/formatting/res_parser/info_extension_warning/foo.info.2
+++ b/tp/tests/formatting/res_parser/info_extension_warning/foo.info.2
@@ -1,2 +1 @@
 texi2any: warning: input file foo.info; did you mean foo.texi?
-could not open ./formatting//foo.info: No such file or directory
diff --git a/tp/tests/run_parser_all.sh b/tp/tests/run_parser_all.sh
index f29fad4fe2..d2c68bb838 100755
--- a/tp/tests/run_parser_all.sh
+++ b/tp/tests/run_parser_all.sh
@@ -118,6 +118,7 @@ post_process_output ()
   elif test "$use_latex2html" = 'yes' ; then
     sed -e 's/^texexpand.*/texexpand /' \
         -e '/is no longer supported at.*line/d' \
+        -e '/^could not open/d' \
         -e 's/^htmlxref/.\/htmlxref/' \
         $raw_outdir$dir/$basename.2 > $outdir$dir/$basename.2
     # "*"_images.pl" files are not guaranteed to be present
@@ -146,9 +147,11 @@ post_process_output ()
     rm -f ${outdir}$dir/*.aux ${outdir}$dir/*_images.out \
           ${outdir}$dir/*_l2h.css ${outdir}$dir/*_l2h_images.pl
   else
-    # Account for variant output under MS-Windows.  This transformation
-    # is also done above.
-    sed -e 's/^htmlxref/.\/htmlxref/' \
+    # Delete error message that may have directories in file name and
+    # account for variant output under MS-Windows.  These transformations
+    # are also done above.
+    sed -e '/^could not open/d' \
+        -e 's/^htmlxref/.\/htmlxref/' \
         $raw_outdir$dir/$basename.2 > $outdir$dir/$basename.2
   fi
 }



reply via email to

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