Add ability to specify path var to testr
This keeps cinderclient/tests as the default test dir, but it adds the ability to set specific paths via the OS_TEST_PATH var, this way we can call on unit vs functional tests (once the functional tests are in place of course). Change-Id: Icdc703e4054af6d22f5886581efed07319ec0247
This commit is contained in:

committed by
John Griffith

parent
e5a1304791
commit
2fa7e1ec36
@@ -1,4 +1,4 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./cinderclient/tests $LISTOPT $IDOPTION
|
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./cinderclient/tests} $LISTOPT $IDOPTION
|
||||||
test_id_option=--load-list $IDFILE
|
test_id_option=--load-list $IDFILE
|
||||||
test_list_option=--list
|
test_list_option=--list
|
||||||
|
Reference in New Issue
Block a user