From fc47f04ba8127c7ad8dc816d75b25dfd11bbba2d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 20 Jan 2016 01:11:57 +0100 Subject: [PATCH] Improved generation of db name. --- script/build/test_db_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/build/test_db_config.sh b/script/build/test_db_config.sh index 4fcaac586..c2f829151 100755 --- a/script/build/test_db_config.sh +++ b/script/build/test_db_config.sh @@ -10,14 +10,14 @@ if [ "$RDB" == '' ]; then exit 1 fi -export RAND=`perl -e 'print rand(99999999)*100000'` +export RAND=`perl -e 'print int(rand(999999999))'` DBNAME="$RNAME-$RAND" DBFILE=config/database.yml DB_PRODUCTION=$DBNAME"_production" DB_TEST=$DBNAME"_test" DB_DEVELOPMENT=$DBNAME"_development" -echo "Creating $DBFILE for tests with $DBNAME" +echo "Creating $DBFILE for $RDB tests with $DBNAME" if [ "$RDB" == 'mysql' ]; then echo "production:" > $DBFILE