diff options
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/lib_sxng_test.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/lib_sxng_test.sh b/utils/lib_sxng_test.sh index e0a4fe6f0..5e4c94f36 100755 --- a/utils/lib_sxng_test.sh +++ b/utils/lib_sxng_test.sh @@ -89,10 +89,17 @@ test.robot() { dump_return $? } + test.rst() { build_msg TEST "[reST markup] ${RST_FILES[*]}" + + local rst2html=rst2html + if [ "3.8" == "$(python -c 'import sys; print(".".join([str(x) for x in sys.version_info[:2]]))')" ]; then + rst2html=rst2html.py + fi + for rst in "${RST_FILES[@]}"; do - pyenv.cmd rst2html.py --halt error "$rst" > /dev/null || die 42 "fix issue in $rst" + pyenv.cmd "${rst2html}" --halt error "$rst" > /dev/null || die 42 "fix issue in $rst" done } |