Unable to run a subset of tests using tox

Bug #1593537 reported by Taylor Peoples
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
High
Unassigned

Bug Description

If I try to run a subset of tests using tox, such as:

tox -v -e py27 -- openstack_dashboard.test.api_tests.network_tests

I get an error from the manage.py command complaining about unrecognized arguments:

usage: manage.py test [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
                      [--pythonpath PYTHONPATH] [--traceback] [--no-color]
                      [--noinput] [--failfast] [--testrunner TESTRUNNER]
                      [--liveserver LIVESERVER] [-t TOP_LEVEL]
                      [--pattern PATTERN] [-k] [-r] [--debug-sql] [-p] [-q]
                      [-c FILES] [-w WHERE] [--py3where PY3WHERE] [-m REGEX]
                      [--tests NAMES] [-l DEBUG] [--debug-log FILE]
                      [--logging-config FILE] [-I REGEX] [-e REGEX] [-i REGEX]
                      [-x] [-P] [--exe] [--noexe] [--traverse-namespace]
                      [--first-package-wins] [--no-byte-compile]
                      [--with-fixture-bundling] [--with-html-output]
                      [--html-out-file FILE] [--with-openstack]
                      [--openstack-red OPENSTACK_RED]
                      [--openstack-yellow OPENSTACK_YELLOW]
                      [--openstack-show-elapsed] [--openstack-color]
                      [--openstack-nocolor]
                      [--openstack-num-slow OPENSTACK_NUM_SLOW]
                      [--openstack-stdout] [--with-noseexclude]
                      [--exclude-dir EXCLUDE_DIRS]
                      [--exclude-dir-file EXCLUDE_DIR_FILE]
                      [--exclude-test EXCLUDE_TESTS]
                      [--exclude-test-file EXCLUDE_TEST_FILE]
                      [--with-xcoverage] [--xcoverage-file FILE]
                      [--xcoverage-to-stdout XCOVERAGE_TO_STDOUT] [-a ATTR]
                      [-A EXPR] [-s] [--nologcapture]
                      [--logging-format FORMAT] [--logging-datefmt FORMAT]
                      [--logging-filter FILTER] [--logging-clear-handlers]
                      [--logging-level LOGCAPTURE_LEVEL] [--with-coverage]
                      [--cover-package PACKAGE] [--cover-erase]
                      [--cover-tests]
                      [--cover-min-percentage COVER_MIN_PERCENTAGE]
                      [--cover-inclusive] [--cover-html]
                      [--cover-html-dir DIR] [--cover-branches] [--cover-xml]
                      [--cover-xml-file FILE] [--pdb] [--pdb-failures]
                      [--pdb-errors] [--no-deprecated] [--with-doctest]
                      [--doctest-tests] [--doctest-extension EXT]
                      [--doctest-result-variable VAR]
                      [--doctest-fixtures SUFFIX] [--doctest-options OPTIONS]
                      [--with-isolation] [-d] [--with-profile]
                      [--profile-sort SORT] [--profile-stats-file FILE]
                      [--profile-restrict RESTRICT] [--no-skip] [--with-id]
                      [--id-file FILE] [--failed] [--processes NUM]
                      [--process-timeout SECONDS] [--process-restartworker]
                      [--with-xunit] [--xunit-file FILE]
                      [--xunit-testsuite-name PACKAGE] [--all-modules]
                      [--collect-only]
                      [test_label [test_label ...]]
manage.py test: error: unrecognized arguments: openstack_dashboard.test.api_tests.network_tests

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

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

Changed in horizon:
assignee: nobody → Richard Jones (r1chardj0n3s)
status: New → In Progress
Revision history for this message
Richard Jones (r1chardj0n3s) wrote :

Confirmed the bug - it means we can't restrict tests to a specific set (or specific singular test) using the tox command, which is a show-stopper for removing run_tests.sh in my view.

Changed in horizon:
importance: Undecided → High
milestone: none → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Richard Jones (<email address hidden>) on branch: master
Review: https://review.openstack.org/330868
Reason: I think 322016 is a superior patch to mine, retracting this one.

Changed in horizon:
milestone: newton-2 → newton-3
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :
Changed in horizon:
status: In Progress → Invalid
milestone: newton-3 → none
assignee: Richard Jones (r1chardj0n3s) → nobody
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.