Discover only tests in tests folder.

This is to prevent python 3 unittest2 failing to load all modules when
libvirt is not installed.

Partial-Bug: #1617432
Change-Id: I37d8d21d4cd0bda099ea08b8b2f807e006edcab8
This commit is contained in:
Federico Ressi 2016-08-26 22:47:58 +01:00 committed by Emma Foley
parent 595b58ae0e
commit 3f5320f43b

View File

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