gnocchi/run-tests.sh
Julien Danjou 99d91a0b0b sql: default to pymysql
It's utopic to think the user is going to write a mysql+pymysql:// URL
by default. Let's do that for them.

Change-Id: I00f050423fd86ffd51d7ef2bb7f5e5928620f412
2016-05-18 10:16:04 +02:00

13 lines
411 B
Bash
Executable File

#!/bin/bash -x
set -e
GNOCCHI_TEST_STORAGE_DRIVERS=${GNOCCHI_TEST_STORAGE_DRIVERS:-file}
GNOCCHI_TEST_INDEXER_DRIVERS=${GNOCCHI_TEST_INDEXER_DRIVERS:-postgresql}
for storage in ${GNOCCHI_TEST_STORAGE_DRIVERS}
do
export GNOCCHI_TEST_STORAGE_DRIVER=$storage
for indexer in ${GNOCCHI_TEST_INDEXER_DRIVERS}
do
pifpaf -g GNOCCHI_INDEXER_URL run $indexer -- ./tools/pretty_tox.sh $*
done
done