run_test.sh in python-fuelclient do not allow to select desired tests correctly

Bug #1420664 reported by Sebastian Kalinowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Bartłomiej Piotrowski

Bug Description

run_tests.sh has an option '-t' that allows to select tests to run.

It does not work with multiple tests:
$ ./run_test.sh -t path/to/tests_a.py path/to/tests_b.py - runs only "path/to/tests_a.py"

And it does not work with nosetests test selectors:
$ ./run_test.sh -t path/to/tests_a.py:TestCase.test_method
Error: Specified tests were not found.

Tags: cli
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Bartlomiej Piotrowski (bpiotrowski)
Changed in fuel:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/155748
Committed: https://git.openstack.org/cgit/stackforge/python-fuelclient/commit/?id=6270ce08c7c3729f87eccf1f2d41e7e12250b5ee
Submitter: Jenkins
Branch: master

commit 6270ce08c7c3729f87eccf1f2d41e7e12250b5ee
Author: Bartłomiej Piotrowski <email address hidden>
Date: Fri Feb 13 14:53:49 2015 +0100

    Allow to specify multiple tests in run_tests.sh

    Disable checking for unbound variables, as there is possibility that no
    tests were specified. Example invocation:

    run_tests.sh -n -t fuelclient/tests/test_client.py:TestAuthentication.test_wrong_credentials \
    -t fuelclient/tests/test_client.py:TestDownloadUploadNodeAttributes

    Additionally align shifts in getopt loop and remove
    dead return from tox invocation.

    DocImpact
    Change-Id: I83a52b5f5467c9ea92dfafba9b92b700f7e76a38
    Closes-Bug: 1420664

Changed in fuel:
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.