[PATCH 1/9] tests: beware of version numbers from git describe

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
* tests/report.at: Be robust to version numbers such as
3.6.4.133-fbac-dirty.
---
 tests/report.at | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/report.at b/tests/report.at
index e6a30dd7..e9695cf3 100644
--- a/tests/report.at
+++ b/tests/report.at
@@ -1142,7 +1142,7 @@ if test x"$XSLTPROC" != x""; then
   AT_CHECK([[$XSLTPROC \
            `]]AT_SET_ENV[[ bison --print-datadir`/xslt/xml2xhtml.xsl \
            input.xml | \
-           sed -e 's/GNU Bison [0-9][0-9.]*/GNU Bison VERSION/' \
+           sed -e 's/GNU Bison [0-9][-.0-9a-z]*/GNU Bison VERSION/' \
            >input.html]])
 
   AT_CHECK([cat input.html], [],
@@ -2097,7 +2097,7 @@ if test x"$XSLTPROC" != x""; then
   AT_CHECK([[$XSLTPROC \
            `]]AT_SET_ENV[[ bison --print-datadir`/xslt/xml2xhtml.xsl \
            input.xml | \
-           sed -e 's/GNU Bison [0-9][0-9.]*/GNU Bison VERSION/' \
+           sed -e 's/GNU Bison [0-9][-.0-9a-z]*/GNU Bison VERSION/' \
            >input.html]])
 
   AT_CHECK([cat input.html], [],
-- 
2.27.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.