One-liner:
for backend in \
mysql+pymysql://root:secret@localhost/mysql \
postgresql://postgres:secret@localhost/cinder \
sqlite:///somefile.db \
; do
OS_TEST_DBAPI_ADMIN_CONNECTION=$backend \
python -m subunit.run cinder.tests.unit.test_migrations |
subunit2pyunit
done
MySQL
OS_TEST_DBAPI_ADMIN_CONNECTION='mysql+pymysql://root:secret@localhost/mysql'\ python -m subunit.run cinder.tests.unit.test_migrations | subunit2pyunit
PostgreSQL
OS_TEST_DBAPI_ADMIN_CONNECTION='postgresql://postgres:secret@localhost/cinder'\ python -m subunit.run cinder.tests.unit.test_migrations | subunit2pyunit
SQLite
OS_TEST_DBAPI_ADMIN_CONNECTION='sqlite:///somefile.db'\ python -m subunit.run cinder.tests.unit.test_migrations | subunit2pyunit
No comments:
Post a Comment