a76ae0f20b
Use `rally db` command instead of `rally-manage db` everywhere Change-Id: Ief8613d60b0c0a763bd9bf3086d7225f1dfe6905
22 lines
574 B
Bash
Executable File
22 lines
574 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
|
|
|
|
python $LOCAL_DIR/pytest_launcher.py "tests/check_samples"
|