prevent extraneous log messages and stdout prints

Bug #1496898 reported by Venkatesh Sampath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Venkatesh Sampath

Bug Description

When we run unit tests using './run_tests.sh glance.tests.unit', it prints quite a lot of unwanted log messages and stdout prints. This quite badly clutters the whole unit test result output making things difficult to see whats happening.

Attaching a sample out put of the unit tests.

Revision history for this message
Venkatesh Sampath (venkateshsampath) wrote :
Changed in glance:
assignee: nobody → Venkatesh Sampath (venkateshsampath)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/224787

Changed in glance:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/224787
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=367925c770c98b188894e289944bb01fe711a588
Submitter: Jenkins
Branch: master

commit 367925c770c98b188894e289944bb01fe711a588
Author: Venkatesh Sampath <email address hidden>
Date: Thu Sep 17 11:20:14 2015 +0530

    Prevent extraneous log messages and stdout prints

    while running unit tests using run_tests.sh,
    we can see quite an amount of unwanted log
    messages and stdout prints as part of
    the unit test results on the console.
    This basically makes it difficult to go
    through the test results and figure whats happening.

    This patch fixes the cause for those
    extraneous log messages caused due to
    a incorrect fixture usage in test_manage.py
    and also by mocking sys.stdout at the respective unit tests.

    Closes-bug: #1496898
    Change-Id: If986691cb3f36ba357a5c0df34b6df7bf2d8ff86

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → liberty-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-rc1 → 11.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.