oslo.db/tools/run-pifpaf-tests.sh
Stephen Finucane f048068216 tox: Simplify test running
We were actually running tests four times. Twice with eventlet disabled
and twice with it enabled. Correct this.

Change-Id: Idb3926d73ff3c11abe9c273062aca1b299b9f72e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-07-16 13:01:45 +01:00

8 lines
287 B
Bash
Executable File

#!/bin/bash
set -e
# Replace mysql:// by mysql+pymysql:// and add sqlite
export OS_TEST_DBAPI_ADMIN_CONNECTION="${OS_TEST_DBAPI_ADMIN_CONNECTION/#mysql:/mysql+pymysql:};sqlite://"
echo $OS_TEST_DBAPI_ADMIN_CONNECTION
TEST_EVENTLET=0 stestr run $*
TEST_EVENTLET=1 stestr run --combine $*