run_test.sh doesn't run individual tests

Bug #1183434 reported by Michael Kerrin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Committed
Medium
Michael Kerrin

Bug Description

When you try and run an individual test the testing framework will run your test and then immediately run all the unit tests despite you asking just to run on test.

This is very annoying when you are trying to develop something.

Changed in cinder:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Walt Boring (walter-boring)
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
assignee: Walt Boring (walter-boring) → Michael Kerrin (michael-kerrin-w)
status: Triaged → In Progress
Revision history for this message
John Griffith (john-griffith) wrote :

This is fixed along with some other work being done here: https://review.openstack.org/#/c/29618/

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

Reviewed: https://review.openstack.org/30291
Committed: http://github.com/openstack/cinder/commit/930f5891b0815e1b49b9b2cc840e0c24b2796e84
Submitter: Jenkins
Branch: master

commit 930f5891b0815e1b49b9b2cc840e0c24b2796e84
Author: Michael Kerrin <email address hidden>
Date: Thu May 16 08:10:27 2013 +0000

    Fix up the test framework

    When trying to test a bug the cinder test framework was
    running all the tests when I just wanted one to run.

    Instead of fixing this problem in nose I tried to move cinder to
    testr. I copied a fair bit of code from nova to get this to work.
    This way at least if some one makes an improvement to the nova
    test framework cinder can improve here also.

    Note that now all the tests a thread safe. Added a concurrency argument
    to run_tests.sh that defaults to 1. You can specify your own level then
    and take the risk of intermittent failures. Tell jenkins to use a
    concurrency level of 1 to avoid failing gate jobs.

    Note One of these tests is broken and I have disabled for now. There
    is a bug for this here: https://bugs.launchpad.net/cinder/+bug/1173266

    Note: cinder.api.openstack.FaultWrapper is deprecated and is causing
    a circular import when I try and import cinder.tests.test_wsgi. This
    is fixed by only importing the openstack.FaultWrapper during the
    __init__ phase of the wsgi middleware.

    Fixes: bug 1183434
    Fixes: bug 1177924

    Change-Id: I5e10b55c5b236eb81a6a3e0e9ea56af8ca4ef8e1

Changed in cinder:
status: In Progress → Fix Committed
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.