Marcel Telka
2022-11-25 a5f8179c3da81ab13221924f39baacd3e624bd64
tools/python-integrate-project: check only the 'commands' keys in tox.ini

1 files modified
3 ■■■■ changed files
tools/python-integrate-project 3 ●●●● patch | view | raw | blame | history
tools/python-integrate-project
@@ -323,7 +323,8 @@
# Warn if pytest is called directly by tox
[[ "$($GMAKE print-value-TEST_STYLE)" == "tox" && -f "$SOURCE_DIR/tox.ini" ]] \
    && grep -q '^\(commands *=\)\? *pytest' "$SOURCE_DIR/tox.ini" \
    && sed -n -e '/^commands *=/,/^$/p' "$SOURCE_DIR/tox.ini" \
        | grep -q '^\(commands *=\)\? *pytest' \
    && printf "WARNING: pytest is called directly in tox.ini\n" >&2