summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2023-03-31 10:03:42 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2023-03-31 10:11:00 +0200
commit8c5c2e807610ff138c2d618b441c1d719bb45e76 (patch)
tree6712cdf2dabcd6597c7f6b69c9c7eab38794f7be /jjb
parent2cfa32eb69db6297da9101d8ea8be9542a9f5626 (diff)
Call correctly a few warning messages
Issue-ID: DOC-798 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ic4d0817032f50116b83c32e3d059ca13d3386ed2
Diffstat (limited to 'jjb')
-rw-r--r--jjb/doc/rules.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/jjb/doc/rules.yaml b/jjb/doc/rules.yaml
index 06a5257d6..95106e7da 100644
--- a/jjb/doc/rules.yaml
+++ b/jjb/doc/rules.yaml
@@ -75,7 +75,8 @@
if echo $line | grep -q '^[ \t]*sphinx-build.* -W ' ; then
log_success_msg "sphinx-build option '-W' used in $filename, line $linenumber."
elif echo $line | grep -q ' \-b spelling ' ; then
- log_success_msg "sphinx-build option '-W' not used for spellcheck in $filename, line $linenumber."
+ log_warning_msg "sphinx-build option '-W' not used for spellcheck in $filename, line $linenumber."
+ warning="1"
else
log_failure_msg "sphinx-build option '-W' missing in $filename, line $linenumber. Please add it."
exitstatus="1"
@@ -110,7 +111,7 @@
if [ "$warning" = "0" ]; then
log_success_msg "Congratulations! No documentation problem(s) detected."
else
- log_failure_msg "WARN No major documentation problem(s) detected but there are warnings!"
+ log_warning_msg "No major documentation problem(s) detected but there are warnings!"
fi
else
log_failure_msg "Please fix the detected documentation problem(s)!"