Skip to content

Commit c1826a4

Browse files
committed
Let's remove doc test as help.1 is not generated at all.
See https://redhat.atlassian.net/browse/RHELMISC-27557 PR: sclorg/container-common-scripts#421 Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
1 parent a9415ee commit c1826a4

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

test/run_test

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -600,34 +600,6 @@ function run_master_restart_test() {
600600
return $ret
601601
}
602602

603-
# run_doc_test
604-
# --------------------
605-
# Checks whether `help.1` file with specific terms is included in default
606-
# working directory in the container image.
607-
run_doc_test() {
608-
local tmpdir=$(mktemp -d)
609-
local f
610-
echo " Testing documentation in the container image"
611-
# Extract the help files from the container
612-
for f in help.1 ; do
613-
docker run --rm ${IMAGE_NAME} /bin/bash -c "cat /${f}" >${tmpdir}/$(basename ${f})
614-
# Check whether the files include some important information
615-
for term in 'POSTGRESQL\\?_ADMIN\\?_PASSWORD' Volume 5432 ; do
616-
if ! cat ${tmpdir}/$(basename ${f}) | grep -E -q -e "${term}" ; then
617-
echo "ERROR: File /${f} does not include '${term}'."
618-
return 1
619-
fi
620-
done
621-
done
622-
# Check whether the files use the correct format
623-
if ! file ${tmpdir}/help.1 | grep -q roff ; then
624-
echo "ERROR: /help.1 is not in troff or groff format"
625-
return 1
626-
fi
627-
echo " Success!"
628-
echo
629-
}
630-
631603

632604
####
633605
# TESTING FUNCTIONS

0 commit comments

Comments
 (0)