If you run the tests with too little disk space in /tmp partition, e.g.
sudo mount -t tmpfs -o size=1M none /tmp
test/functional/test_runner.py
you get a huge log output with a lot of -- Logging error --, with the tests failing one by one, where it's not immediately clear why the tests are failing. It might be useful to exit immediately with a more specific message when even writing to the logs fails, and/or do an early check if the disk space need in the file system where the temporary files go can be estimated.