deb-gnocchi/setup-test-env.sh
Julien Danjou 133243a233 Use overtest to setup PostgreSQL and MySQL in tests
Change-Id: I699c8632aaa2cb833cfa066783faf1ed3d830194
2016-01-11 13:21:54 +01:00

9 lines
268 B
Bash
Executable File

#!/bin/bash
set -e
set -x
GNOCCHI_TEST_INDEXER_DRIVER=${GNOCCHI_TEST_INDEXER_DRIVER:-postgresql}
source $(which overtest) $GNOCCHI_TEST_INDEXER_DRIVER
export GNOCCHI_INDEXER_URL=${OVERTEST_URL/#mysql:/mysql+pymysql:}
export GNOCCHI_COORDINATION_URL=${OVERTEST_URL}
$*