Noise in unit test output (stderr messages)

Bug #1334655 reported by Stuart McLaren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Fix Released
Undecided
Louis Taylor

Bug Description

Output such as the following is being printed to stderr on each test run:

$ ./run_tests.sh
py27 develop-inst-nodeps: /home/ubuntu/git/python-glanceclient.v3/python-glanceclient
py27 runtests: commands[0] | python setup.py testr --testr-args=
running testr
usage: glance image-update [--name <NAME>] [--disk-format <DISK_FORMAT>]
                           [--container-format <CONTAINER_FORMAT>]
                           [--owner <TENANT_ID>] [--size <SIZE>]
                           [--min-disk <DISK_GB>] [--min-ram <DISK_RAM>]
                           [--location <IMAGE_URL>] [--file <FILE>]
                           [--checksum <CHECKSUM>] [--copy-from <IMAGE_URL>]
                           [--is-public {True,False}]
                           [--is-protected {True,False}]
                           [--property <key=value>] [--purge-props]
                           [--human-readable] [--progress]
                           <IMAGE>
glance image-update: error: argument --min-disk: invalid int value: '10gb'
usage: glance image-create [--id <IMAGE_ID>] [--name <NAME>] [--store <STORE>]
                           [--disk-format <DISK_FORMAT>]
                           [--container-format <CONTAINER_FORMAT>]
                           [--owner <TENANT_ID>] [--size <SIZE>]
                           [--min-disk <DISK_GB>] [--min-ram <DISK_RAM>]
                           [--location <IMAGE_URL>] [--file <FILE>]
                           [--checksum <CHECKSUM>] [--copy-from <IMAGE_URL>]
                           [--is-public {True,False}]
                           [--is-protected {True,False}]
                           [--property <key=value>] [--human-readable]
                           [--progress]

Changed in python-glanceclient:
assignee: nobody → Stuart McLaren (stuart-mclaren)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

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

Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-glanceclient (master)

Change abandoned by Stuart McLaren (<email address hidden>) on branch: master
Review: https://review.openstack.org/102823
Reason: Abandoned in favour of https://review.openstack.org/#/c/114847/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/114847
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=69361a146ecd0cd775579e5dcf34692e9c6328bc
Submitter: Jenkins
Branch: master

commit 69361a146ecd0cd775579e5dcf34692e9c6328bc
Author: Louis Taylor <email address hidden>
Date: Sun Aug 17 20:39:03 2014 +0000

    Hide stderr noise in test output

    Previously, some tests caused the usage options for glance to be printed out to
    stderr. This patch redirects the stderr output for those unnecessarily verbose
    test functions.

    Change-Id: I781d35a16a97c9c093cb17288ebd96d3e1a2e4e9
    Closes-Bug: #1334655

Changed in python-glanceclient:
status: In Progress → Fix Committed
Louis Taylor (kragniz)
Changed in python-glanceclient:
assignee: Stuart McLaren (stuart-mclaren) → Louis Taylor (kragniz)
status: Fix Committed → Fix Released
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.