https://github.com/genome/genome
Raw File
Tip revision: 3cb97703ee792d8bab7a1b448c16fed0e500a30e authored by Anthony Brummett on 09 February 2016, 14:28:08 UTC
Merge pull request #1241 from brummett/genome-test-env-alloc-cleanup
Tip revision: 3cb9770
fill_db
#!/bin/bash

set -o errexit
set -o nounset
set -o pipefail

DS_GMSCHEMA_SERVER=`genome config get ds_gmschema_server`
if ! echo "$DS_GMSCHEMA_SERVER" | grep -q apipe-test-db
then
    echo "ERROR: make sure you ran genome-env before $0"
    exit 1
fi

eval `genome config set-env test_filldb "dbi:Pg:$DS_GMSCHEMA_SERVER;user=genome;password=mypassword"`
#Force the environment to look up the values for the production db
for ENV in XGENOME_DS_GMSCHEMA_LOGIN XGENOME_DS_GMSCHEMA_AUTH XGENOME_DS_GMSCHEMA_SERVER;
do
    unset $ENV
done

"$@"
back to top