Add OS_TEST_PATH to testr

Change default test path to unit tets, and support setting
$OS_TEST_PATH to specify a different path (such as functional).

Change-Id: Id58351f02e79b35990719ea1698a2fd2169a9cf6
Partial-Bug: #1429289
This commit is contained in:
Kyle Mestery 2015-03-06 22:19:15 +00:00
parent aa0042eb49
commit ca52c272bb
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutronclient/tests/unit} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list