Allow specifying OS_TEST_PATH (to reduce tests ran)

All the other main openstack projects support this and
I am trying to provide it for usage in our jenkins so that
our jenkins only runs the unit tests.

Setting this up in jenkins hit a snag though because it
appears that glance doesn't support OS_TEST_PATH (this
change allows it to).

Change-Id: I602c78dc6ef882a00592261aaf39a77215c31226
This commit is contained in:
Joshua Harlow 2016-11-07 11:08:17 -08:00
parent f72d9556b4
commit 408672c430
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./glance/tests $LISTOPT $IDOPTION
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./glance/tests} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list