[PATCH 05/21] tests/lib.sh: Add logging functions