From aa6dbd67a53288f5d41a7f2c2e431792b56dcf94 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 20 Oct 2021 11:06:31 +0200 Subject: [PATCH] Fix run_doc_test to work with newer go-md2man Should fix https://github.com/sclorg/postgresql-container/issues/421 --- test/run_test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/run_test b/test/run_test index 14860eae..84a40c73 100755 --- a/test/run_test +++ b/test/run_test @@ -699,8 +699,8 @@ run_doc_test() { for f in help.1 ; do docker run --rm ${IMAGE_NAME} /bin/bash -c "cat /${f}" >${tmpdir}/$(basename ${f}) # Check whether the files include some important information - for term in "POSTGRESQL\_ADMIN\_PASSWORD" volume 5432 ; do - if ! cat ${tmpdir}/$(basename ${f}) | grep -F -q -e "${term}" ; then + for term in 'POSTGRESQL\\?_ADMIN\\?_PASSWORD' volume 5432 ; do + if ! cat ${tmpdir}/$(basename ${f}) | grep -E -q -e "${term}" ; then echo "ERROR: File /${f} does not include '${term}'." return 1 fi