From ea10d85ecdad10e851ddae801bf1fb30caf5ba85 Mon Sep 17 00:00:00 2001 From: wangzhenyu Date: Tue, 21 Nov 2017 23:18:38 -0500 Subject: [PATCH] Remove invalid parameters in the file testing.rst Remove invalid parameters in the file testing.rst and modify UT path of cinder volume Change-Id: I629cd5a643d22584cb151bcd49ce8ee9c821cadc Closes-Bug: #1733774 --- doc/source/contributor/testing.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/source/contributor/testing.rst b/doc/source/contributor/testing.rst index 9a6e1a7ac0a..754ff5a2fb8 100644 --- a/doc/source/contributor/testing.rst +++ b/doc/source/contributor/testing.rst @@ -95,19 +95,16 @@ Running a subset of tests using tox One common activity is to just run a single test, you can do this with tox simply by specifying to just run py27 or py35 tests against a single test:: - tox -epy27 -- -n cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached + tox -epy27 -- cinder.tests.unit.volume.test_availability_zone.AvailabilityZoneTestCase.test_list_availability_zones_cached Or all tests in the test_volume.py file:: - tox -epy27 -- -n cinder.tests.unit.test_volume + tox -epy27 -- cinder.tests.unit.volume.test_volume You may also use regular expressions to run any matching tests:: tox -epy27 -- test_volume -Additionally, when running a single test, or test-file, the `-n` argument is no -longer required, however it may perform faster if included. - For more information on these options and details about stestr, please see the `stestr documentation `_.