Properly quote database name

Seems to fix #30, but also reveals that a FLUSHALL is also needed
when redis is started by ourselves...
This commit is contained in:
Sandro Santilli
2012-07-10 19:28:16 +02:00
parent e628b8249a
commit d9b7bfff2c
+1 -1
View File
@@ -28,6 +28,6 @@ psql "${TEST_DB}" < ./sql/gadm4.sql
echo "preparing redis..."
echo "HSET rails:users:vizzuality id 1" | redis-cli -p ${REDIS_PORT} -n 5
echo "HSET rails:users:vizzuality database_name '${TEST_DB}'" | redis-cli -p ${REDIS_PORT} -n 5
echo 'HSET rails:${TEST_DB}:my_table infowindow "this, that, the other"' | redis-cli -p ${REDIS_PORT} -n 0
echo 'HSET rails:'${TEST_DB}':my_table infowindow "this, that, the other"' | redis-cli -p ${REDIS_PORT} -n 0
echo "Finished preparing data. Run tests with expresso."