[PATCH v2 05/18] tests/lib.sh: adjust to pytest logging style