rally-openstack/tests/ci/rally_functional_job.sh
chenhb 3973ee0b40 Launch functional test
* Functional test is used to test deployment, samples etc.
* Remove `tox -e cli` and merge test cases into functional test
* Remove unused test cases

Change-Id: I87832278551da788e53984c7c4d90ea5775b53b9
2018-08-23 11:46:23 +08:00

19 lines
526 B
Bash
Executable File

#!/usr/bin/env bash
LOCAL_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DB_CONNECTION="$(rally db show)"
if [[ $DB_CONNECTION == sqlite* ]]; then
CONCURRENCY=0
else
# in case of not sqlite db backends we cannot launch tests in parallel due
# to possible conflicts
CONCURRENCY=1
# currently, RCI_KEEP_DB variable is used to not create new databases per
# each test
export RCI_KEEP_DB=1
fi
python $LOCAL_DIR/pytest_launcher.py "tests/functional" --concurrency $CONCURRENCY --posargs=$1