Add OS_TEST_PATH to testr

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

Change-Id: I3c0d597b5e1c43a8cb04ac0fc936e9ad1cdcfbf8
This commit is contained in:
Joe Gordon 2015-01-27 13:09:42 -08:00
parent 3561772f8b
commit f197c64e05

View File

@ -1,4 +1,4 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} ${PYTHON:-python} -m subunit.run discover -t ./ ./ $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:-./novaclient/tests/unit} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list