nose tests don't capture bob logs
Created by: siebenkopf
When running nose tests, the log output of bob is not captured any more. You can, e.g., see this in the logs of the xbob.db.aggregator, where some log output from the DaqTest is written to console: https://www.idiap.ch/software/bob/buildbot/builders/idiap-12.10-x86_64-release/builds/103/steps/nosetest_1/logs/stdio
Note: this only happens, when the nightlies version of bob is used. When linking against the stable versions, this does not occur.
Here is a short recipe how to reproduce the problem:
clone the bob.example.project $ git clone git@github.com:idiap/bob.project.example.git $ cd bob.project.example
edit the test file by adding a new test with log output:
file: xbob/example/test.py
def test_log(self):
import logging logging.getLogger('bob').info("Test log message")
now, run buildout using bob version 1.1.1 (works also with 1.1.2 and 1.1.3) and the tests $ python bootstrap.py $ bin/buildout $ bin/nosetests -v
test_log (xbob.example.test.MyTests) ... ok test_version (xbob.example.test.MyTests) ... ok ...
build against the nightlies, and the test log message will appear: $ bin/buildout buildout:prefixes=/idiap/group/torch5spro/nightlies/last/install/linux-x86_64-release $ bin/nosetests -v
test_log (xbob.example.test.MyTests) ... Test log message ok test_version (xbob.example.test.MyTests) ... ok
So, there must be some change in the logging system between the stable and the master branch.