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): Remove code stripping out lines with file names from output as we unconditionally use forward slash as the directory separator, so results should not be different on MS-Windows.
Date: Sun, 29 Dec 2024 16:10:20 -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 8db7b5cc6f * tp/tests/run_parser_all.sh (post_process_output): Remove 
code stripping out lines with file names from output as we unconditionally use 
forward slash as the directory separator, so results should not be different on 
MS-Windows.
8db7b5cc6f is described below

commit 8db7b5cc6f2b2ead5e3c9460f1974c81d9b22fe7
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Dec 29 21:10:09 2024 +0000

    * tp/tests/run_parser_all.sh (post_process_output):
    Remove code stripping out lines with file names from output
    as we unconditionally use forward slash as the directory separator,
    so results should not be different on MS-Windows.
---
 ChangeLog                                                          | 7 +++++++
 tp/tests/formatting/res_parser/info_extension_warning/foo.info.2   | 1 +
 .../res_parser/js_license_reuse_output_file/split_nocopying.2      | 1 +
 tp/tests/formatting/res_parser/reuse_macro_expand_file/simplest.2  | 1 +
 tp/tests/run_parser_all.sh                                         | 7 -------
 5 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e7d5a6707b..de70d3b9e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-12-29  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/tests/run_parser_all.sh (post_process_output):
+       Remove code stripping out lines with file names from output
+       as we unconditionally use forward slash as the directory separator,
+       so results should not be different on MS-Windows.
+
 2024-12-28  Gavin Smith <gavinsmith0123@gmail.com>
 
        Move defines out of system.h
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 4cd72f4b2b..aa46c4c51f 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 +1,2 @@
 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/formatting/res_parser/js_license_reuse_output_file/split_nocopying.2 
b/tp/tests/formatting/res_parser/js_license_reuse_output_file/split_nocopying.2
index e69de29bb2..17be7f1d7f 100644
--- 
a/tp/tests/formatting/res_parser/js_license_reuse_output_file/split_nocopying.2
+++ 
b/tp/tests/formatting/res_parser/js_license_reuse_output_file/split_nocopying.2
@@ -0,0 +1 @@
+texi2any: warning: overwriting output file with js licences: 
formatting/out_parser/js_license_reuse_output_file/Ch1.html
diff --git a/tp/tests/formatting/res_parser/reuse_macro_expand_file/simplest.2 
b/tp/tests/formatting/res_parser/reuse_macro_expand_file/simplest.2
index e69de29bb2..8d99dcb9e9 100644
--- a/tp/tests/formatting/res_parser/reuse_macro_expand_file/simplest.2
+++ b/tp/tests/formatting/res_parser/reuse_macro_expand_file/simplest.2
@@ -0,0 +1 @@
+texi2any: warning: overwriting file: 
formatting/out_parser/reuse_macro_expand_file/simplest.info
diff --git a/tp/tests/run_parser_all.sh b/tp/tests/run_parser_all.sh
index 9768dc11f3..996f88375d 100755
--- a/tp/tests/run_parser_all.sh
+++ b/tp/tests/run_parser_all.sh
@@ -151,14 +151,9 @@ post_process_output ()
     # with tex4ht.
     rm "${outdir}$dir/$basename.2"
   else
-    # Delete error message that may have directories in file name and
-    # account for variant output under MS-Windows.
-    sed_cmds='/^could not open/d; /: overwriting file/d; /: overwriting output 
file/d; s/^htmlxref/.\/htmlxref/'
-
     if test "$use_latex2html" = 'yes' ; then
       sed -e 's/^texexpand.*/texexpand /' \
           -e '/is no longer supported at.*line/d' \
-          -e "$sed_cmds" \
           $raw_outdir$dir/$basename.2 > $outdir$dir/$basename.2
       # "*"_images.pl" files are not guaranteed to be present
       for file in "${raw_outdir}$dir/"*"_labels.pl"; do
@@ -190,8 +185,6 @@ post_process_output ()
         rm -f ${outdir}$dir/*info_math2img.aux 
${outdir}$dir/*info_math2img.log \
           ${outdir}$dir/*info_math2img.dvi
       fi
-      sed -e "$sed_cmds" \
-          $raw_outdir$dir/$basename.2 > $outdir$dir/$basename.2
     fi
   fi
 }



reply via email to

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