diff --git a/test/fulldbtest.sh b/test/fulldbtest.sh index af7076365..a3de55009 100755 --- a/test/fulldbtest.sh +++ b/test/fulldbtest.sh @@ -42,6 +42,9 @@ run_tests() { SKIP_DB_SCHEMA=true TEST_DATABASE_URI=$1 TEST=true python -m unittest discover -f } +CIP=${CONTAINERIP-'127.0.0.1'} +echo "> Using container IP address $CIP" + # NOTE: MySQL is currently broken on setup. # Test (and generate, if requested) via MySQL. echo '> Starting MySQL' @@ -49,7 +52,7 @@ up_mysql echo '> Running Full Test Suite (mysql)' set +e -run_tests "mysql+pymysql://root:password@192.168.99.100/genschema" +run_tests "mysql+pymysql://root:password@$CIP/genschema" set -e down_mysql @@ -59,6 +62,6 @@ up_postgres echo '> Running Full Test Suite (postgres)' set +e -run_tests "postgresql://postgres@192.168.99.100/genschema" +run_tests "postgresql://postgres@$CIP/genschema" set -e down_postgres