Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob bob
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bobbob
  • Issues
  • #127
Closed
Open
Issue created Apr 19, 2013 by André Anjos@andre.anjos💬Owner

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.

Assignee
Assign to
Time tracking